diff --git a/scripts/backup b/scripts/backup index b4faae1..c8fcac8 100755 --- a/scripts/backup +++ b/scripts/backup @@ -50,7 +50,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_script_progression --message="Backing up uWSGI configuration..." ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini" -ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service" ynh_backup --src_path "/var/log/uwsgi/$app" #================================================= diff --git a/scripts/restore b/scripts/restore index 3ddd68c..572af62 100755 --- a/scripts/restore +++ b/scripts/restore @@ -83,10 +83,9 @@ chown $app: --recursive "$final_path" #================================================= ynh_restore_file --origin_path="/etc/uwsgi/apps-available/$app.ini" -ynh_restore_file --origin_path "/etc/systemd/system/uwsgi-app@.service" ynh_restore_file --origin_path "/var/log/uwsgi/$app" chown $app:root /var/log/uwsgi/$app -systemctl daemon-reload +ynh_check_global_uwsgi_config systemctl enable "uwsgi-app@$app.service" #=================================================