Change configuration creation by adding init command

This commit is contained in:
2022-12-02 16:47:52 +01:00
parent 61dbd439a7
commit f4d26084a2
3 changed files with 28 additions and 10 deletions

View File

@ -4,11 +4,13 @@
rm *.conf 2>/dev/null
rm *-client_*.png 2>/dev/null
echo "Create configuration files"
while [[ -z $DEVICE ]]; do
echo -n "Device (eg tun0): "
read DEVICE
done
echo " - Writing config to file $DEVICE.conf"
echo " - Writing server config to file $DEVICE.conf"
while [[ -z $SERVER_HOST ]]; do
echo -n "Endpoint hostname: "