Commit 2a3c9499 authored by Lindsay Harvey's avatar Lindsay Harvey
Browse files

Bug fix in allocate_ip function. Allocate IP question was asking user y/n...

Bug fix in allocate_ip function. Allocate IP question was asking user y/n however function was expecting yes/no.
parent 89144758
......@@ -33,11 +33,11 @@ function allocate_ip {
read -p "Do you want to allocate a static VPN IP to the client for firewalling? (y/n)" ALLOCATEIP
fi
if [ "$ALLOCATEIP" = "yes" ]; then
if [ "$ALLOCATEIP" = "yes" ] || [ "$ALLOCATEIP" = "y" ]; then
export $OVPN_ORGNICK
/usr/lib/openvpn-server/ovs-commands/make-static-ip $OVPN_COMMONNAME
else
echo -n ""
echo "Static IP not allocated"
fi
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment