emergency fix

with 
- 5654b6d0b2
- 081447008c
- a642a01029
This commit is contained in:
agentcobra
2018-09-10 21:50:47 +02:00
parent 355b24ea0c
commit 8b3a04fb90
2 changed files with 6 additions and 2 deletions

View File

@@ -129,6 +129,10 @@ start_openvpn() {
[ "${ynh_server_proto}" == tcp ] && proto=tcp-client
fi
# Unset firewall to let DNS and NTP resolution works
# Firewall is reset after vpn is mounted (more details on #1016)
unset_firewall
sync_time
cp /etc/openvpn/client.conf{.tpl,}
@@ -199,7 +203,7 @@ stop_openvpn() {
sync_time() {
systemctl stop ntp
ntpd -qg &> /dev/null
timeout 20 ntpd -qg &> /dev/null
systemctl start ntp
}