From 74fc9ed43e8fa531ddba45eb3a4741b71d46ba16 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 22 Dec 2020 20:36:44 +0100 Subject: [PATCH] Please add --quiet to systemctl enable/disable commands to avoid unecessary warnings when the script runs --- scripts/restore | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 6d438b7..181cda8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -91,7 +91,7 @@ chown -R "$app": "$sync_home" ynh_script_progression --message="Restoring the systemd configuration..." ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -systemctl enable $app.service +systemctl enable $app.service --quiet #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/upgrade b/scripts/upgrade index 511612e..be04a9b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,7 +71,7 @@ if [ -z $gui_port ]; then systemctl stop syncthing@$OLD_SYNCUSER.service yunohost service remove syncthing@$OLD_SYNCUSER.service - systemctl disable syncthing@$OLD_SYNCUSER.service + systemctl disable syncthing@$OLD_SYNCUSER.service --quiet ynh_secure_remove --file="/etc/apt/sources.list.d/syncthing.list"