Fixed server.conf path

This commit is contained in:
Alex Heidenreich 2019-03-10 14:02:37 -04:00
parent 3364f76790
commit 3a0d6b1b47

View file

@ -715,7 +715,7 @@ setCustomDomain() {
if (whiptail --backtitle "Custom Search Domain" --title "Custom Search Domain" --yesno "Are these settings correct?\n Custom Search Domain: $CUSTOMDomain" 8 78); then
DomainSettingsCorrect=True
$SUDO sed -i '0,/\(.*dhcp-option.*\)/s//\push "dhcp-option DOMAIN '${CUSTOMDomain}'" /' server.conf
$SUDO sed -i '0,/\(.*dhcp-option.*\)/s//\push "dhcp-option DOMAIN '${CUSTOMDomain}'" /' /etc/openvpn/server.conf
else
# If the settings are wrong, the loop continues