From f032c3ef67f466877e0b61b7966c2b9a2797858a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 7 Nov 2021 08:58:19 +0100 Subject: [PATCH] fix --- scripts/restore | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/restore b/scripts/restore index 05b4726..4693d7c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -90,6 +90,9 @@ ynh_script_progression --message="Restoring the logrotate configuration..." --we ynh_restore_file --origin_path="/etc/logrotate.d/$app" +chown -R $app:$app "/var/log/$app" +chmod u=rwX,g=rX,o= "/var/log/$app" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f226a6f..6d0adca 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,6 +152,9 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1 # Use logrotate to manage application logfile(s) ynh_use_logrotate +chown -R $app:$app "/var/log/$app" +chmod u=rwX,g=rX,o= "/var/log/$app" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================