From 50102dabc678f8b897a0a9f47120d1eba5551f91 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:36:00 +0100 Subject: [PATCH] fix logs path --- scripts/restore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index e75f01c..b69c776 100755 --- a/scripts/restore +++ b/scripts/restore @@ -35,9 +35,11 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet -yunohost service add $app --log="/var/log/$app/$app.log" +mkdir -p "/var/log/$app" +chown -R $app: "/var/log/$app" +ynh_restore_file --origin_path="/var/log/$app" -ynh_restore_file --origin_path="/etc/logrotate.d/$app" +yunohost service add $app --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION