better removal of old hostname

Version 1.5


In some areas, the 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/ (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!