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

Fix remove

This commit is contained in:
Salamandar 2024-05-26 11:58:36 +02:00
parent c9cea9c144
commit c3c86a1c9e

View file

@ -18,9 +18,9 @@ for suffix in "${systemd_services_suffixes[@]}"; do
if ynh_exec_warn_less yunohost service status "$app_suffix" >/dev/null; then if ynh_exec_warn_less yunohost service status "$app_suffix" >/dev/null; then
yunohost service remove "$app_suffix" yunohost service remove "$app_suffix"
fi fi
ynh_systemd_action --service="$app$suffix.timer" --action="stop" ynh_systemd_action --service_name="$app$suffix.timer" --action="stop"
ynh_systemd_action --service="$app$suffix.timer" --action="disable" ynh_systemd_action --service_name="$app$suffix.timer" --action="disable"
ynh_remove_systemd_config --service="$app$suffix" ynh_remove_systemd_config --service_name="$app$suffix"
ynh_secure_remove "/etc/systemd/system/$app$suffix.timer" ynh_secure_remove "/etc/systemd/system/$app$suffix.timer"
done done