X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fadd_domain.sh;h=48d5495c5409bd8b4d410e18aee2d63c4dbb5183;hb=7732a53caedd6e81d9f1872a5850a7b61c5562c5;hp=b40cdc5703d99e264ff448b0a89c21c0b9c54bba;hpb=0353ac1abc1b20dd51615dcef43db46a27b197db;p=feisty_meow.git diff --git a/scripts/system/add_domain.sh b/scripts/system/add_domain.sh index b40cdc57..48d5495c 100644 --- a/scripts/system/add_domain.sh +++ b/scripts/system/add_domain.sh @@ -9,12 +9,13 @@ # Author: Chris Koeritz # some defaults that are convenient for current purposes. -# hmmm: these would need to be parameterized somehow for this script to become really general. + +# hmmm: !!! these would need to be parameterized somehow for this script to become really general. # in our scheme, the single IP address that all our domains map to. IP_ADDRESS="10.28.42.20" # the email address (where first dot is replaced by @) for the administrator of the domain. -SERVER_ADMIN="fred.cakelampvm.com" +SERVER_ADMIN="developer.cakelampvm.com" # the name of the name server for the new domains (should already be configured). MAIN_NAME_SERVER="ns.cakelampvm.com" # the name of the mail server for a new domain (should already be configured). @@ -33,10 +34,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 exit 0 fi @@ -130,7 +133,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