bug fix: pdns

This commit is contained in:
Usman Nasir
2022-09-26 23:04:42 +05:00
parent 2e52d42828
commit 6d56e2c1d1
2 changed files with 12 additions and 0 deletions

View File

@@ -1576,6 +1576,12 @@ milter_default_action = accept
command = 'chmod 640 /etc/pdns/pdns.conf'
ProcessUtilities.executioner(command)
else:
command = 'chown root:pdns /etc/powerdns/pdns.conf'
ProcessUtilities.executioner(command)
command = 'chmod 640 /etc/powerdns/pdns.conf'
ProcessUtilities.executioner(command)
command = 'chmod 640 /usr/local/lscp/cyberpanel/logs/access.log'
ProcessUtilities.executioner(command)

View File

@@ -2218,6 +2218,12 @@ echo $oConfig->Save() ? 'Done' : 'Error';
command = 'chmod 640 /etc/pdns/pdns.conf'
Upgrade.executioner(command, 0)
else:
command = 'chown root:pdns /etc/powerdns/pdns.conf'
Upgrade.executioner(command, 0)
command = 'chmod 640 /etc/powerdns/pdns.conf'
Upgrade.executioner(command, 0)
command = 'chmod 640 /usr/local/lscp/cyberpanel/logs/access.log'
Upgrade.executioner(command, 0)