From da655023c94ee89b81661a600616342556f75361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 11 Apr 2020 11:20:55 +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 661d0ae..ccb21f8 100644 --- a/scripts/backup +++ b/scripts/backup @@ -43,6 +43,5 @@ ynh_backup --src_path "/var/log/uwsgi/$app" # BACKUP THE UWSGI FILES ynh_script_progression --message="Backing up configuration..." ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini" -ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service" ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last diff --git a/scripts/restore b/scripts/restore index d36d85c..d21cc53 100644 --- a/scripts/restore +++ b/scripts/restore @@ -56,7 +56,7 @@ yunohost service add "uwsgi-app@$app.service" --log "/var/log/uwsgi/app/$app" ynh_script_progression --message="Reloading services..." --weight=3 -systemctl daemon-reload +ynh_check_global_uwsgi_config systemctl enable "uwsgi-app@$app.service" # RELOAD NGINX AND UWSGI