hostname.sh better removal of old hostname

Version 1.5

Bugfix
Finished

In some areas, the hostname.sh script did not remove the old hostname, and instead just added the new host, leaving the old value. This fixes that using better regex's. Some old locations: /etc/virtual/old.hostname.com (now does a rename) /etc/virtual/domains /etc/hosts /usr/local/directadmin/scripts/setup.txt

Interested to try DirectAdmin? Get a 30-day Free Trial!