Update hosts file on server ip change

This commit is contained in:
earnolmartin 2023-07-13 11:38:35 -06:00
parent 9970f95884
commit 1224aa7aed

View file

@ -2504,6 +2504,9 @@ function options(){
if($dnsip != $this->miscconfig['dnsip']){ # fix all dnsip related config if dnsip is changed...
$this->addDaemonOp("fixmailconfiguration",'','','','fix mail configuration'); # fixes postfix configuration
$this->addDaemonOp('syncdns','','','','sync dns'); # syncs the DNS zones to use the new IP address
if($updatehostsfile<>'') {
$this->addDaemonOp("updatehostsfile",'','','','update hostsfile'); # Update hosts file too
}
}
$addSyncOpAfterSettingsReloaded = false;