Browse Source

adding systemctl daemon-reload before enabling services

keoma 6 years ago
parent
commit
5916e7c8dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/restore

+ 1 - 0
scripts/restore

@@ -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.timer"
 ynh_restore_file "/etc/systemd/system/openvpn@.service"
+systemctl daemon-reload
 systemctl enable "$service_name.service"
 systemctl enable "$service_checker_name.service"
 systemctl enable "openvpn@.service"