X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fcommon_sysadmin.sh;h=81bc435cb8f9c605892caf6a17aba5e923b3d956;hb=f9cdfb4f177d9ab6cb7ce02ef57964d5d019eeb6;hp=af0cf3db545ed0038385aa5497fc71c3d8c6d6a1;hpb=883c7d98dd2fdead2cf1e0c945f293419d40e003;p=feisty_meow.git diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index af0cf3db..81bc435c 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -14,6 +14,8 @@ function remove_domain_file() # don't destroy, just shuffle. \mv -f "$domain_file" "/tmp/$(basename ${domain_file})-old-${RANDOM}" test_or_die "removing domain file: $domain_file" + else + echo "Did not see a domain file to remove: $domain_file" fi } @@ -158,8 +160,7 @@ function add_new_subdomain() fi # append the new subdomain into the config file. - echo " -${subdomain}.${containing_domain}. IN A ${IP_ADDRESS} + echo "${subdomain}.${containing_domain}. IN A ${IP_ADDRESS} IN HINFO \"linux server\" \"${DISTRO}\" " >> /etc/bind/${containing_domain}.conf