From b84fab959a2c5e800b709ec970e0471ed01711c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 11 Apr 2020 11:20:44 +0200 Subject: [PATCH] Use helper to restore systemd unit --- scripts/backup | 1 - scripts/restore | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/backup b/scripts/backup index 726e237..9825ae9 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,7 +32,6 @@ ynh_backup --src_path "$final_path" ynh_script_progression --message="Backing configuration..." ynh_backup --src_path "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini" -ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service" # Backup Data and LOG ynh_script_progression --message="Backing up data..." diff --git a/scripts/restore b/scripts/restore index 85fcee9..f9246f4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -48,7 +48,7 @@ ynh_psql_execute_as_root \ # Restore systemd configuration ynh_script_progression --message="Reconfiguring application..." -systemctl daemon-reload +ynh_check_global_uwsgi_config systemctl enable "uwsgi-app@$app.service" #=================================================