From 75b7995a878affefc3fa4a4b044c7723c16267a3 Mon Sep 17 00:00:00 2001 From: EWouters Date: Wed, 15 Mar 2017 02:40:39 +1300 Subject: [PATCH] Removed SERVER_NAME parameter because it is hardcoded as "server" in other scripts --- auto_install/install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index ca7f2b9..f75d8c0 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -771,6 +771,8 @@ setClientDNS() { } confOpenVPN() { + SERVER_NAME="server" + if [[ ${useUpdateVars} == false ]]; then # Ask user for desired level of encryption ENCRYPT=$(whiptail --backtitle "Setup OpenVPN" --title "Encryption Strength" --radiolist \ @@ -1021,7 +1023,7 @@ confOVPN() { finalExports() { # Update variables in setupVars.conf file if [ -e "${setupVars}" ]; then - sed -i.update.bak '/pivpnUser/d;/UNATTUPG/d;/pivpnInterface/d;/IPv4dns/d;/IPv4addr/d;/IPv4gw/d;/pivpnProto/d;/PORT/d;/ENCRYPT/d;/DOWNLOAD_DH_PARAM/d;/PUBLICDNS/d;/OVPNDNS1/d;/OVPNDNS2/d;/SERVER_NAME/d;' "${setupVars}" + sed -i.update.bak '/pivpnUser/d;/UNATTUPG/d;/pivpnInterface/d;/IPv4dns/d;/IPv4addr/d;/IPv4gw/d;/pivpnProto/d;/PORT/d;/ENCRYPT/d;/DOWNLOAD_DH_PARAM/d;/PUBLICDNS/d;/OVPNDNS1/d;/OVPNDNS2/d;' "${setupVars}" fi { echo "pivpnUser=${pivpnUser}" @@ -1037,7 +1039,6 @@ finalExports() { echo "PUBLICDNS=${PUBLICDNS}" echo "OVPNDNS1=${OVPNDNS1}" echo "OVPNDNS2=${OVPNDNS2}" - echo "SERVER_NAME=${SERVER_NAME}" }>> "${setupVars}" } @@ -1061,7 +1062,6 @@ finalExports() { # sed -i 's/PUBLICDNS/PUBLIC_DNS/g' ${setupVars} # sed -i 's/OVPNDNS1/OVPN_DNS_1/g' ${setupVars} # sed -i 's/OVPNDNS2/OVPN_DNS_2/g' ${setupVars} -# #sed -i 's/SERVER_NAME/SERVER_NAME/g' ${setupVars} #} installPiVPN() { @@ -1073,7 +1073,6 @@ installPiVPN() { setCustomPort confOpenVPN confNetwork - SERVER_NAME="server" confOVPN setClientDNS finalExports