diff --git a/mailServer/mailserverManager.py b/mailServer/mailserverManager.py index c4869661c..fda01047e 100755 --- a/mailServer/mailserverManager.py +++ b/mailServer/mailserverManager.py @@ -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) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index e2a21b228..2f4e41d35 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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)