Indent case and other improvements
This commit is contained in:
parent
fa7df5dca4
commit
3fc3fa42ab
1 changed files with 134 additions and 132 deletions
|
|
@ -89,7 +89,7 @@ function installEasyRsa () {
|
||||||
rm -f ~/EasyRSA-${version}.tgz
|
rm -f ~/EasyRSA-${version}.tgz
|
||||||
}
|
}
|
||||||
|
|
||||||
function newclient () {
|
function newClient () {
|
||||||
echo ""
|
echo ""
|
||||||
echo "Do you want to protect the configuration file with a password?"
|
echo "Do you want to protect the configuration file with a password?"
|
||||||
echo "(e.g. encrypt the private key with a password)"
|
echo "(e.g. encrypt the private key with a password)"
|
||||||
|
|
@ -363,7 +363,9 @@ if [[ -e /etc/openvpn/server.conf ]]; then
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
4) exit;;
|
4)
|
||||||
|
exit
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|
@ -882,4 +884,4 @@ verb 3" >> /etc/openvpn/client-template.txt
|
||||||
newclient
|
newclient
|
||||||
echo "If you want to add more clients, you simply need to run this script another time!"
|
echo "If you want to add more clients, you simply need to run this script another time!"
|
||||||
fi
|
fi
|
||||||
exit 0;
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue