X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fadd_domain.sh;h=3c9df992983372a976865d7e91039c87b5f2d145;hb=791f23ff2dde7c87f67ac9119916082f20877534;hp=df4f5ea5656cadcfa7804f5ba5dba4a633b45c19;hpb=160ff926e9e26baa75cfed099b4119608a3e8514;p=feisty_meow.git diff --git a/scripts/system/add_domain.sh b/scripts/system/add_domain.sh index df4f5ea5..3c9df992 100644 --- a/scripts/system/add_domain.sh +++ b/scripts/system/add_domain.sh @@ -33,10 +33,12 @@ function write_new_domain_file() echo "using the config file: $domain_file" if [ -f $domain_file ]; then + echo echo "The domain configuration file already exists at:" echo " $domain_file" echo "Since we don't want to tear that down if it has specialized configuration" - echo "data in it, we will just leave it in place and consider our job done. + echo "data in it, we will just leave it in place and consider our job done." + echo exit 0 fi @@ -130,7 +132,7 @@ function restart_bind() # main body of script. -if (( $EUID != 0 )); then +if [[ $EUID != 0 ]]; then echo "This script must be run as root or sudo." exit 1 fi