From 176bce8ec05a8ae110020412d80a1cda767ee729 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 18 Aug 2020 12:20:54 +0200 Subject: [PATCH] fix log settinds --- scripts/install | 2 +- scripts/remove | 2 +- scripts/upgrade | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 38b2c17..2b3ec8f 100644 --- a/scripts/install +++ b/scripts/install @@ -91,7 +91,7 @@ ynh_setup_source --dest_dir=$final_path --source_id="$architecture" #================================================= ynh_script_progression --message="Configuring NGINX web server..." --weight=3 -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config #================================================= diff --git a/scripts/remove b/scripts/remove index 448b919..b23af30 100644 --- a/scripts/remove +++ b/scripts/remove @@ -70,7 +70,7 @@ ynh_secure_remove --file="/var/lib/$app" #================================================= ynh_script_progression --message="Removing NGINX web server configuration..." --weight=5 -# Remove the dedicated nginx config +# Remove the dedicated NGINX config ynh_remove_nginx_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7fda7aa..b3b498d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,7 +51,7 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -150,7 +150,7 @@ chmod -R 764 /home/yunohost.$app #================================================= # SETUP LOGROTATE #================================================= -ynh_script_progression --message="Upgrading logrotate configuration..." --time --weight=1 +ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1 # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append @@ -160,7 +160,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description "Web-based music collection server and streamer" --log_path="/var/log/$app/$app.log" +yunohost service add $app --description "Web-based music collection server and streamer" --log "/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE