mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 05:57:36 +01:00 
			
		
		
		
	Fixed rc.local and sysctl.conf files on ArchLinux
This commit is contained in:
		| @@ -59,12 +59,18 @@ RemainAfterExit=yes | |||||||
| [Install] | [Install] | ||||||
| WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service | WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service | ||||||
| 	systemctl enable rc-local.service | 	systemctl enable rc-local.service | ||||||
| 	touch /etc/rc.local | 	if ! grep '#!' $RCLOCAL; then | ||||||
|  | 		echo "#!/bin/bash" > $RCLOCAL | ||||||
|  | 	fi | ||||||
| else | else | ||||||
| 	echo "Looks like you aren't running this installer on a Debian, Ubuntu, CentOS or ArchLinux system" | 	echo "Looks like you aren't running this installer on a Debian, Ubuntu, CentOS or ArchLinux system" | ||||||
| 	exit 4 | 	exit 4 | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | if [[ ! -e /etc/sysctl.conf ]]; then | ||||||
|  | 	touch /etc/sysctl.conf | ||||||
|  | fi | ||||||
|  |  | ||||||
| newclient () { | newclient () { | ||||||
| 	# Generates the custom client.ovpn | 	# Generates the custom client.ovpn | ||||||
| 	cp /etc/openvpn/client-common.txt ~/$1.ovpn | 	cp /etc/openvpn/client-common.txt ~/$1.ovpn | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TheKinrar
					TheKinrar