Fix unassigned php version

This commit is contained in:
David Duque 2020-06-29 09:13:50 +01:00
parent 3876cbac8a
commit b98111b4e1
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A
3 changed files with 6 additions and 5 deletions

View File

@ -247,7 +247,7 @@ def perform_backup(full_backup):
if quit:
sys.exit(code)
service_command("php7.3-fpm", "stop", quit=True)
service_command("php!!___PHPVER___!!-fpm", "stop", quit=True)
service_command("postfix", "stop", quit=True)
service_command("dovecot", "stop", quit=True)
@ -281,7 +281,7 @@ def perform_backup(full_backup):
# Start services again.
service_command("dovecot", "start", quit=False)
service_command("postfix", "start", quit=False)
service_command("php7.3-fpm", "start", quit=False)
service_command("php!!___PHPVER___!!-fpm", "start", quit=False)
# Remove old backups. This deletes all backup data no longer needed
# from more than 3 days ago.

View File

@ -232,3 +232,4 @@ elif [ "$OS" == "Ubuntu 20.04 LTS" ]; then
fi
sed -i "s|!!___PHPVER___!!|${PHP_VERSION}|g" conf/nginx-top.conf
sed -i "s|!!___PHPVER___!!|${PHP_VERSION}|g" management/backup.py