From 2f90d7f824abbce5da5743a3ba843cd3ef71d5e7 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 19 Jun 2023 20:29:40 +0200 Subject: [PATCH] Update restore --- scripts/restore | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/restore b/scripts/restore index ed892d7..ac8b07e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -48,6 +48,18 @@ ynh_script_progression --message="Restoring the PostgreSQL database..." --weight ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name +#================================================= +# LOGROTATE +#================================================= +ynh_script_progression --message="Configuring logrotate to manage application logfiles" --weight=1 + +# Use logrotate to manage application logfile(s) +ynh_use_logrotate --specific_user=$app +touch /var/log/$app/${app}-server.log +touch /var/log/$app/${app}-worker.log +touch /var/log/$app/${app}-beat.log +chown -R $app:$app /var/log/$app/ + #================================================= # RESTORE SYSTEMD #=================================================