adding systemctl daemon-reload before enabling services

This commit is contained in:
keoma
2019-03-07 22:41:44 +01:00
parent f63958ec08
commit 5916e7c8dd

View File

@@ -109,6 +109,7 @@ ynh_restore_file "/etc/systemd/system/$service_name.service"
ynh_restore_file "/etc/systemd/system/$service_checker_name.service" ynh_restore_file "/etc/systemd/system/$service_checker_name.service"
ynh_restore_file "/etc/systemd/system/$service_checker_name.timer" ynh_restore_file "/etc/systemd/system/$service_checker_name.timer"
ynh_restore_file "/etc/systemd/system/openvpn@.service" ynh_restore_file "/etc/systemd/system/openvpn@.service"
systemctl daemon-reload
systemctl enable "$service_name.service" systemctl enable "$service_name.service"
systemctl enable "$service_checker_name.service" systemctl enable "$service_checker_name.service"
systemctl enable "openvpn@.service" systemctl enable "openvpn@.service"