diff --git a/data/helpers.d/backend b/data/helpers.d/backend index 66f10baba..95ef95820 100644 --- a/data/helpers.d/backend +++ b/data/helpers.d/backend @@ -158,8 +158,8 @@ ynh_remove_systemd_config () { local finalsystemdconf="/etc/systemd/system/$service.service" if [ -e "$finalsystemdconf" ]; then - ynh_systemd_action --service_name=$service_name --action=stop - systemctl disable $service_name + ynh_systemd_action --service_name=$service --action=stop + systemctl disable $service ynh_secure_remove --file="$finalsystemdconf" systemctl daemon-reload fi