mirror of
https://github.com/YunoHost-Apps/restic_ynh.git
synced 2024-09-03 20:16:22 +02:00
Add yunohost service add in restore
This commit is contained in:
parent
ffe5dc1993
commit
4bfd79488f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue