run: Always ensure client dir exists
* OpenVPN will fail to start if this directory doesn't exist.
This commit is contained in:
		@@ -11,6 +11,10 @@ if [ ! -c /dev/net/tun ]; then
 | 
			
		||||
    mknod /dev/net/tun c 10 200
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ ! -d "$OPENVPN/ccd" ]; then
 | 
			
		||||
    mkdir -p /etc/openvpn/ccd
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
iptables -t nat -A POSTROUTING -s 192.168.255.0/24 -o eth0 -j MASQUERADE
 | 
			
		||||
 | 
			
		||||
openvpn --config "$OPENVPN/udp1194.conf"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user