done with remove domain. whew.
[feisty_meow.git] / scripts / system / common_sysadmin.sh
index af0cf3db545ed0038385aa5497fc71c3d8c6d6a1..81bc435cb8f9c605892caf6a17aba5e923b3d956 100644 (file)
@@ -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