Fix usage of $service_name

This commit is contained in:
Maniack Crudelis 2019-02-09 11:38:15 +01:00 committed by GitHub
parent 508439b112
commit 8e8ed22395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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