From fc2cf85447343244ac1701763e99cc6d93194fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 6 Oct 2022 18:17:22 +0200 Subject: [PATCH] Fix: re-create the log directory in restore script --- scripts/restore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/restore b/scripts/restore index 14e7f2e..1405c4b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -114,6 +114,9 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 +mkdir -p "/var/log/$app/" +touch "/var/log/$app/$app.log" +chown -R $app:$app "/var/log/$app/" ynh_restore_file --origin_path="/etc/logrotate.d/$app" #=================================================