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:
parent
58356e7f34
commit
08958e6897
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ for suffix in "${systemd_services_suffixes[@]}"; do
|
||||||
ynh_add_systemd_config --service="$app$suffix" --template="systemd$suffix.service"
|
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"
|
_ynh_add_config_j2 --template="systemd$suffix.timer.j2" --destination="/etc/systemd/system/$app$suffix.timer"
|
||||||
systemctl disable --quiet "${app}$suffix.service"
|
systemctl disable --quiet "${app}$suffix.service"
|
||||||
systemctl enable --quiet "${app}$suffix.time"
|
systemctl enable --quiet "${app}$suffix.timer"
|
||||||
systemctl start --quiet "${app}$suffix.time"
|
systemctl start --quiet "${app}$suffix.timer"
|
||||||
|
|
||||||
yunohost service add "$app$suffix" --description="Restic backup program ($app$suffix)" \
|
yunohost service add "$app$suffix" --description="Restic backup program ($app$suffix)" \
|
||||||
--test_status="systemctl show $app$suffix.service -p ActiveState --value | grep -v failed"
|
--test_status="systemctl show $app$suffix.service -p ActiveState --value | grep -v failed"
|
||||||
|
|
Loading…
Add table
Reference in a new issue