diff --git a/scripts/experimental_helper.sh b/scripts/experimental_helper.sh index 3b75020..6b09bfc 100644 --- a/scripts/experimental_helper.sh +++ b/scripts/experimental_helper.sh @@ -128,6 +128,11 @@ ynh_remove_uwsgi_service () { fi } +ynh_restore_uwsgi_service () { + ynh_check_global_uwsgi_config + systemctl enable "uwsgi-app@$app" --quiet + yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log" +} #================================================= # OTHERS HELPERS diff --git a/scripts/restore b/scripts/restore index 3818e8e..d8ee270 100644 --- a/scripts/restore +++ b/scripts/restore @@ -55,9 +55,7 @@ ynh_psql_execute_as_root \ # Restore systemd configuration ynh_script_progression --message="Reconfiguring application..." -ynh_check_global_uwsgi_config -systemctl enable "uwsgi-app@$app" --quiet -yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log" +ynh_restore_uwsgi_service #================================================= # GENERIC FINALIZATION