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" #=================================================