mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 08:16:11 +01:00
bug fix: postfix files during upgrade
This commit is contained in:
@@ -1978,16 +1978,10 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
|||||||
|
|
||||||
### Restore dovecot/postfix conf
|
### Restore dovecot/postfix conf
|
||||||
|
|
||||||
command = 'rm -rf %s' % (dovecotConfPath)
|
command = 'cp -pR %s/dovecot/ /etc/' % (configbackups)
|
||||||
Upgrade.executioner(command, 0)
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
command = 'rm -rf %s' % (postfixConfPath)
|
command = 'cp -pR %s/postfix/ /etc/' % (configbackups)
|
||||||
Upgrade.executioner(command, 0)
|
|
||||||
|
|
||||||
command = 'mv %s/dovecot /etc/' % (configbackups)
|
|
||||||
Upgrade.executioner(command, 0)
|
|
||||||
|
|
||||||
command = 'mv %s/postfix /etc/' % (configbackups)
|
|
||||||
Upgrade.executioner(command, 0)
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
## Restored
|
## Restored
|
||||||
@@ -2033,16 +2027,10 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
|||||||
|
|
||||||
### Restore dovecot/postfix conf
|
### Restore dovecot/postfix conf
|
||||||
|
|
||||||
command = 'rm -rf %s' % (dovecotConfPath)
|
command = 'cp -pR %s/dovecot/ /etc/' % (configbackups)
|
||||||
Upgrade.executioner(command, 0)
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
command = 'rm -rf %s' % (postfixConfPath)
|
command = 'cp -pR %s/postfix/ /etc/' % (configbackups)
|
||||||
Upgrade.executioner(command, 0)
|
|
||||||
|
|
||||||
command = 'mv %s/dovecot /etc/' % (configbackups)
|
|
||||||
Upgrade.executioner(command, 0)
|
|
||||||
|
|
||||||
command = 'mv %s/postfix /etc/' % (configbackups)
|
|
||||||
Upgrade.executioner(command, 0)
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
## Restored
|
## Restored
|
||||||
|
|||||||
Reference in New Issue
Block a user