From 31422e63760f0cf34f09763712395d15fbb22f10 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 19 Mar 2022 00:50:12 +0100 Subject: [PATCH] Fix restore --- scripts/experimental_helper.sh | 6 ++++++ scripts/restore | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/experimental_helper.sh b/scripts/experimental_helper.sh index 6b09bfc..605dd74 100644 --- a/scripts/experimental_helper.sh +++ b/scripts/experimental_helper.sh @@ -131,6 +131,12 @@ ynh_remove_uwsgi_service () { ynh_restore_uwsgi_service () { ynh_check_global_uwsgi_config systemctl enable "uwsgi-app@$app" --quiet + + # make sure the folder for logs exists and set authorizations + mkdir -p /var/log/uwsgi/$app + chown $app:root /var/log/uwsgi/$app + chmod -R u=rwX,g=rX,o= /var/log/uwsgi/$app + yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log" } diff --git a/scripts/restore b/scripts/restore index 2476141..a17bea5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -97,7 +97,6 @@ ynh_restore_uwsgi_service # Set the permission ynh_script_progression --message="Protecting directory..." -setup_dir set_permission #=================================================