diff options
Diffstat (limited to 'files/clever-set-domain.sh')
-rw-r--r-- | files/clever-set-domain.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/files/clever-set-domain.sh b/files/clever-set-domain.sh new file mode 100644 index 0000000..bf63be0 --- /dev/null +++ b/files/clever-set-domain.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/bash -e | ||
2 | |||
3 | function checkDomain { | ||
4 | clever domain | grep "${DOMAIN}" | ||
5 | } | ||
6 | |||
7 | function setDomain { | ||
8 | clever domain add "${DOMAIN}" | ||
9 | } | ||
10 | |||
11 | checkDomain || setDomain | ||