mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-22 08:49:03 +01:00
Move setup questions to installQuestions ()
This commit is contained in:
parent
bbdabedbec
commit
a85c13e4ec
@ -140,7 +140,7 @@ private-address: ::ffff:0:0/96' > /etc/unbound/openvpn.conf
|
|||||||
systemctl restart unbound
|
systemctl restart unbound
|
||||||
}
|
}
|
||||||
|
|
||||||
function installOpenVPN () {
|
function installQuestions () {
|
||||||
echo "Welcome to the OpenVPN installer!"
|
echo "Welcome to the OpenVPN installer!"
|
||||||
echo "The git repository is available at: https://github.com/angristan/openvpn-install"
|
echo "The git repository is available at: https://github.com/angristan/openvpn-install"
|
||||||
echo ""
|
echo ""
|
||||||
@ -487,6 +487,11 @@ function installOpenVPN () {
|
|||||||
echo "Okay, that was all I needed. We are ready to setup your OpenVPN server now."
|
echo "Okay, that was all I needed. We are ready to setup your OpenVPN server now."
|
||||||
echo "You will be able to generate a client at the end of the installtion."
|
echo "You will be able to generate a client at the end of the installtion."
|
||||||
read -n1 -r -p "Press any key to continue..."
|
read -n1 -r -p "Press any key to continue..."
|
||||||
|
}
|
||||||
|
|
||||||
|
function installOpenVPN () {
|
||||||
|
# Run setup questions first
|
||||||
|
installQuestions
|
||||||
|
|
||||||
# Get the "public" interface from the default route
|
# Get the "public" interface from the default route
|
||||||
NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)
|
NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user