From 0b53c96d9180fea03340cfbd1845cd2d6b90c404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 18 Jan 2024 14:26:30 +0100 Subject: [PATCH] Fix log_file -> var/log/etc --- scripts/install | 4 ++-- scripts/restore | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 1068d4f..be0c158 100644 --- a/scripts/install +++ b/scripts/install @@ -87,10 +87,10 @@ ynh_add_nginx_config # Create a dedicated NGINX config using the conf/nginx.conf template ynh_add_systemd_config --service="$app" --template="systemd.service" -yunohost service add "$app" --description="Digital signage system for high schools" --log="$log_file" +yunohost service add "$app" --description=Digital signage system for high schools --log="/var/log/$app/$app.log" # Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate "$log_file" +ynh_use_logrotate "/var/log/$app/$app.log" #================================================= # Start the app server via systemd diff --git a/scripts/restore b/scripts/restore index 6643707..0ca081f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -62,7 +62,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="Digital signage system for high schools" --log="$log_file" +yunohost service add "$app" --description="Digital signage system for high schools" --log="/var/log/$app/$app.log" ynh_restore_file --origin_path="/etc/logrotate.d/$app"