From 68d887fa7dd00f424c4c73f5fa11d77950aae8a6 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 25 Jun 2024 14:37:22 +0200 Subject: [PATCH] add log file to the service in restore script too --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 4738f2c..afd6c98 100755 --- a/scripts/restore +++ b/scripts/restore @@ -50,7 +50,7 @@ chown "$app:$app" "$install_dir/logging.conf" ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1 ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -yunohost service add $app --description="Deduplicating backup program" --test_status="systemctl show $app.service -p ActiveState --value | grep -v failed" +yunohost service add $app --description="Deduplicating backup program" --test_status="systemctl show $app.service -p ActiveState --value | grep -v failed" --log "/var/log/$app/borg.log" # Disable the service, this is to prevent the service from being triggered at boot time systemctl disable $app.service --quiet