Browse Source

[fix] ntpd blocked cause firewall to strict

ljf (zamentur) 7 years ago
parent
commit
5654b6d0b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conf/ynh-vpnclient

+ 1 - 1
conf/ynh-vpnclient

@@ -199,7 +199,7 @@ stop_openvpn() {
 
 sync_time() {
   systemctl stop ntp
-  ntpd -qg &> /dev/null
+  timeout 20 ntpd -qg &> /dev/null
   systemctl start ntp
 }