Indent case and other improvements

This commit is contained in:
angristan 2018-09-17 15:07:18 +02:00
parent fa7df5dca4
commit 3fc3fa42ab

View file

@ -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