bug fix: postfix files during upgrade

This commit is contained in:
Usman Nasir
2020-10-14 14:47:12 +05:00
parent 87f5b25979
commit 84e1bccd0d

View File

@@ -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