From dfe97ff3f3f1b67f54c67c26bc484d33aed8af78 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 9 Dec 2020 08:40:39 +0100 Subject: [PATCH] Fix service add $app --- scripts/install | 2 +- scripts/restore | 12 ++++++------ scripts/upgrade | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index b0a75e1..c5d0bfa 100644 --- a/scripts/install +++ b/scripts/install @@ -191,7 +191,7 @@ ynh_use_logrotate # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log $final_path/log/production.log +yunohost service add $app --log="$final_path/log/production.log" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 1e3d5bf..8a54f95 100644 --- a/scripts/restore +++ b/scripts/restore @@ -88,12 +88,6 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=60 ynh_install_app_dependencies $pkg_depencencies -#================================================= -# ADVERTISE SERVICE IN ADMIN PANEL -#================================================= - -yunohost service add $app --log $final_path/log/production.log - #================================================= # RESTORE SYSTEMD #================================================= @@ -117,6 +111,12 @@ mkdir -p /var/log/$app/ touch /var/log/$app/production.log chown $app -R /var/log/$app +#================================================= +# ADVERTISE SERVICE IN ADMIN PANEL +#================================================= + +yunohost service add $app --log="$final_path/log/production.log" + #================================================= # RESTORE LOGROTATE CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 11eb8a3..5fa528b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -292,7 +292,7 @@ chown $app -R /var/log/$app # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log $final_path/log/production.log +yunohost service add $app --log="$final_path/log/production.log" #================================================= # RELOAD NGINX