Skip to content

Commit 84e1bcc

Browse files
committed
bug fix: postfix files during upgrade
1 parent 87f5b25 commit 84e1bcc

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

plogical/upgrade.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,16 +1978,10 @@ def upgradeDovecot():
19781978

19791979
### Restore dovecot/postfix conf
19801980

1981-
command = 'rm -rf %s' % (dovecotConfPath)
1981+
command = 'cp -pR %s/dovecot/ /etc/' % (configbackups)
19821982
Upgrade.executioner(command, 0)
19831983

1984-
command = 'rm -rf %s' % (postfixConfPath)
1985-
Upgrade.executioner(command, 0)
1986-
1987-
command = 'mv %s/dovecot /etc/' % (configbackups)
1988-
Upgrade.executioner(command, 0)
1989-
1990-
command = 'mv %s/postfix /etc/' % (configbackups)
1984+
command = 'cp -pR %s/postfix/ /etc/' % (configbackups)
19911985
Upgrade.executioner(command, 0)
19921986

19931987
## Restored
@@ -2033,16 +2027,10 @@ def upgradeDovecot():
20332027

20342028
### Restore dovecot/postfix conf
20352029

2036-
command = 'rm -rf %s' % (dovecotConfPath)
2037-
Upgrade.executioner(command, 0)
2038-
2039-
command = 'rm -rf %s' % (postfixConfPath)
2040-
Upgrade.executioner(command, 0)
2041-
2042-
command = 'mv %s/dovecot /etc/' % (configbackups)
2030+
command = 'cp -pR %s/dovecot/ /etc/' % (configbackups)
20432031
Upgrade.executioner(command, 0)
20442032

2045-
command = 'mv %s/postfix /etc/' % (configbackups)
2033+
command = 'cp -pR %s/postfix/ /etc/' % (configbackups)
20462034
Upgrade.executioner(command, 0)
20472035

20482036
## Restored

0 commit comments

Comments
 (0)