From f187c2ab6cdb4a4319410e8c321cab5d67a9f788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:34:32 +0200 Subject: [PATCH] add log --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 2980e23..a3fc83e 100755 --- a/scripts/install +++ b/scripts/install @@ -38,7 +38,7 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add $app --description="A non-linear personal web notebook" +yunohost service add $app --description="A non-linear personal web notebook" --log="/var/log/$app/$app.log" #================================================= # ADD A CONFIGURATION diff --git a/scripts/restore b/scripts/restore index f78ee7d..2987fa2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -52,7 +52,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet -yunohost service add $app --description="A non-linear personal web notebook" +yunohost service add $app --description="A non-linear personal web notebook" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 459fb5a..5ba433d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,7 +35,6 @@ chown -R $app:www-data "$install_dir" ynh_script_progression --message="Upgrading dependencies..." --weight=1 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version -ynh_use_nodejs #================================================= # REAPPLY SYSTEM CONFIGURATIONS @@ -48,7 +47,7 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add $app --description="A non-linear personal web notebook" +yunohost service add $app --description="A non-linear personal web notebook" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE