diff --git a/BashScripts/install-openvpn-server.sh b/BashScripts/install-openvpn-server.sh index 8827c55..9972c69 100644 --- a/BashScripts/install-openvpn-server.sh +++ b/BashScripts/install-openvpn-server.sh @@ -61,7 +61,7 @@ if ufw status | grep -q "Status: active"; then systemctl restart ufw fi -if [ ! -f /etc/openvpn/myserver.conf ] || [[ " $@ " == *" --force "* ]]; then +if [ ! -f /etc/openvpn/server/myserver.conf ] || [[ " $@ " == *" --force "* ]]; then read -n 1 -p "Do you want to use username and password for login (y/N)? " answer if [[ ! -z "$answer" && "${answer^^}"=="Y" ]]; then EXTRA_CONFIG=$(cat <<-END @@ -74,16 +74,16 @@ END ) fi - tee /etc/openvpn/myserver.conf > /dev/null < /dev/null <