From 4bb89dd162c2b306d0a4fb831797520deea857de Mon Sep 17 00:00:00 2001 From: Yalh Date: Mon, 28 Jan 2019 19:52:26 +0100 Subject: [PATCH] Log personalization for ADMIN PANEL according default systemd.service value for logs --- scripts/install | 4 ++-- scripts/restore | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d0fff64..d469b60 100755 --- a/scripts/install +++ b/scripts/install @@ -274,9 +274,9 @@ ynh_use_logrotate ### - Remove the section "REMOVE SERVICE FROM ADMIN PANEL" in the remove script ### - As well as the section ADVERTISE SERVICE IN ADMIN PANEL" in the restore script -yunohost service add $app --log "/var/log/$app/APP.log" +yunohost service add $app --log "/var/log/$app/$app.log" # if using yunohost version 3.2 or more in the 'manifest.json', a description can be added -#yunohost service add $app --description "$app daemon for XXX" --log "/var/log/$app/APP.log" +#yunohost service add $app --description "$app daemon for XXX" --log "/var/log/$app/$app.log" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index d629496..fa45675 100755 --- a/scripts/restore +++ b/scripts/restore @@ -102,7 +102,7 @@ systemctl enable $app.service # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log "/var/log/$app/APP.log" +yunohost service add $app --log "/var/log/$app/$app.log" #================================================= # RESTORE THE CRON FILE