From 8a6cff10be3a0e306b5966e1405b98c97f96c8cf Mon Sep 17 00:00:00 2001 From: Kayou Date: Sun, 3 Mar 2019 20:26:09 +0100 Subject: [PATCH] log files --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index adb6222..4885b08 100644 --- a/scripts/install +++ b/scripts/install @@ -189,8 +189,7 @@ ynh_use_logrotate # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log "/var/log/$app.log" --log "$final_path/log/production.log" -ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" +yunohost service add $app --log "$final_path/log/production.log" #================================================= # SETUP SSOWAT @@ -218,6 +217,7 @@ chown -R $app:$app "$final_path" systemctl enable $app.service ynh_systemd_action -n $app -a start -l "Creating process id file" -p "$final_path/log/production.log" +ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" #================================================= # RELOAD NGINX diff --git a/scripts/restore b/scripts/restore index e2131e9..286e393 100644 --- a/scripts/restore +++ b/scripts/restore @@ -103,13 +103,13 @@ ynh_print_info "Restoring the systemd configuration..." ynh_restore_file "/etc/systemd/system/$app.service" systemctl enable $app.service ynh_systemd_action -n $app -a start -l "Creating process id file" -p "$final_path/log/production.log" +ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" #================================================= # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log "/var/log/$app.log" --log "/var/www/$app/log/production.log" -ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" +yunohost service add $app --log "$final_path/log/production.log" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 52b6509..7a821fb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -171,7 +171,7 @@ ynh_use_logrotate --non-append # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log "/var/log/$app.log" +yunohost service add $app --log "$final_path/log/production.log" #================================================= # RESTART LUFI