From 4bfd79488f737ceee8e672aa9bae06de582245e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 25 May 2024 22:26:49 +0200 Subject: [PATCH] Add yunohost service add in restore --- scripts/restore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/restore b/scripts/restore index e1a6919..8d4a125 100755 --- a/scripts/restore +++ b/scripts/restore @@ -52,6 +52,9 @@ for suffix in "${systemd_services_suffixes[@]}"; do ynh_restore_file --origin_path="/etc/systemd/system/$app$suffix.service" systemctl enable --quiet "$app$suffix.timer" ynh_systemd_action --service="$app$suffix.timer" --action="start" + + yunohost service add "$app$suffix" --description="Restic backup program ($app$suffix)" \ + --test_status="systemctl show $app$suffix.service -p ActiveState --value | grep -v failed" done #=================================================