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
}

View File

@@ -33,7 +33,7 @@ fi
ynh_webpath_register vpnclient $domain $url_path || exit 1
# Install packages
packages='php5-fpm sipcalc dnsutils openvpn curl'
packages='php5-fpm sipcalc dnsutils openvpn curl fake-hwclock'
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --assume-yes --force-yes install ${packages}