[fix] Let VPN mount

This commit is contained in:
ljf (zamentur) 2018-05-12 02:26:58 +02:00 committed by GitHub
parent 05878ea230
commit 19e83122f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,}