1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

Backup script should now stop php7.0-fpm instead of php5-fpm (#1206)

This commit is contained in:
Michael Kroes 2017-07-17 15:45:40 +02:00 committed by Joshua Tauberer
parent d773140502
commit a16855ecf0

View File

@ -267,7 +267,7 @@ def perform_backup(full_backup):
if quit:
sys.exit(code)
service_command("php5-fpm", "stop", quit=True)
service_command("php7.0-fpm", "stop", quit=True)
service_command("postfix", "stop", quit=True)
service_command("dovecot", "stop", quit=True)
@ -301,7 +301,7 @@ def perform_backup(full_backup):
# Start services again.
service_command("dovecot", "start", quit=False)
service_command("postfix", "start", quit=False)
service_command("php5-fpm", "start", quit=False)
service_command("php7.0-fpm", "start", quit=False)
# Once the migrated backup is included in a new backup, it can be deleted.
if os.path.isdir(migrated_unencrypted_backup_dir):