Browse Source

enable and start ynh-vpnclient timer after restore

HgO 1 year ago
parent
commit
d7be636646
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scripts/restore

+ 5 - 0
scripts/restore

@@ -55,7 +55,12 @@ ynh_print_info "Restoring the systemd configuration..."
 
 systemctl daemon-reload
 systemctl enable "$service_name.service" --quiet
+
+systemctl start "$service_checker_name.service"
 systemctl enable "$service_checker_name.service" --quiet
+systemctl start "$service_checker_name.timer"
+systemctl enable "$service_checker_name.timer" --quiet
+
 systemctl enable "openvpn@.service" --quiet
 
 #=================================================