mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-30 21:47:37 +01:00 
			
		
		
		
	Move setup questions to installQuestions ()
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 angristan
					angristan