mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix: pdns
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user