need to init OVPNDNS

This commit is contained in:
Kaladin Light 2016-04-21 11:43:28 -04:00
parent 3f3ebc48a0
commit 9ca5425c26

View file

@ -524,6 +524,7 @@ confNetwork() {
}
confOVPN() {
OVPNDNS="8.8.8.8"
IPv4pub=$(dig +short myip.opendns.com @resolver1.opendns.com)
$SUDO cp /tmp/pivpnUSR /etc/pivpn/INSTALL_USER
@ -572,8 +573,6 @@ confOVPN() {
$SUDO sed -i -e "s/dhcp-option DNS 8.8.8.8/dhcp-option DNS ${OVPNDNS}/g" /etc/openvpn/server.conf
fi
### ask about dns for clients
$SUDO mkdir /home/$pivpnUser/ovpns
$SUDO chmod 0777 -R /home/$pivpnUser/ovpns
}