1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix unit name

This commit is contained in:
Salamandar 2024-05-25 12:30:33 +02:00
parent 58356e7f34
commit 08958e6897

View file

@ -67,8 +67,8 @@ for suffix in "${systemd_services_suffixes[@]}"; do
ynh_add_systemd_config --service="$app$suffix" --template="systemd$suffix.service"
_ynh_add_config_j2 --template="systemd$suffix.timer.j2" --destination="/etc/systemd/system/$app$suffix.timer"
systemctl disable --quiet "${app}$suffix.service"
systemctl enable --quiet "${app}$suffix.time"
systemctl start --quiet "${app}$suffix.time"
systemctl enable --quiet "${app}$suffix.timer"
systemctl start --quiet "${app}$suffix.timer"
yunohost service add "$app$suffix" --description="Restic backup program ($app$suffix)" \
--test_status="systemctl show $app$suffix.service -p ActiveState --value | grep -v failed"