From 01b1971950e0e7e1d09b4f259736c3f263bb8296 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Sep 2020 21:02:36 +0200 Subject: [PATCH] Update restore --- scripts/restore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/restore b/scripts/restore index f643cc6..11accd7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -92,6 +92,14 @@ chown -R $app: "$final_path/static" chown -R $app: "/home/yunohost.app/$app" chmod +x /usr/bin/$app +#================================================= +# RESTORE HANDLE LOG FILES +#================================================= + +mkdir -p /var/log/$app +touch /var/log/$app/$app.log +chown $app -R /var/log/$app + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================