Update openvpn-install.sh for Debian easy-rsa
Remove existing easy-rsa packages that may conflict with openvpn-install on Debian.
This commit is contained in:
parent
f943387083
commit
798f865c7e
@ -106,6 +106,12 @@ if [[ ! -e /etc/openvpn/server/server.conf ]]; then
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget
|
apt-get install -y wget
|
||||||
fi
|
fi
|
||||||
|
# Address improper easy-rsa installations on fresh debian instances
|
||||||
|
if [[ "$os" == "debian" ]]; then
|
||||||
|
echo "Removing improper easy-rsa packages for Debian prior to installation."
|
||||||
|
read -n1 -r -p "Press any key to remove easy-rsa and continue..."
|
||||||
|
apt-get remove -y easy-rsa
|
||||||
|
fi
|
||||||
clear
|
clear
|
||||||
echo 'Welcome to this OpenVPN road warrior installer!'
|
echo 'Welcome to this OpenVPN road warrior installer!'
|
||||||
# If system has a single IPv4, it is selected automatically. Else, ask the user
|
# If system has a single IPv4, it is selected automatically. Else, ask the user
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user