Cleaned entrypoint.sh

This commit is contained in:
Quentin McGaw
2019-08-31 20:27:33 -04:00
parent 105637192f
commit 856234c02c

View File

@@ -121,13 +121,15 @@ fi
printf "Local network parameters:\n" printf "Local network parameters:\n"
printf " * Extra subnets: $EXTRA_SUBNETS\n" printf " * Extra subnets: $EXTRA_SUBNETS\n"
printf " * Web proxy activated: $PROXY\n" printf " * Web proxy activated: $PROXY\n"
printf " * Web proxy port: $PROXY_PORT\n" if [ "$PROXY" = "on" ]; then
proxy_auth=yes printf " * Web proxy port: $PROXY_PORT\n"
if [ -z $PROXY_USER ]; then proxy_auth=yes
proxy_auth=no if [ -z $PROXY_USER ]; then
proxy_auth=no
fi
printf " * Web proxy has authentication: $proxy_auth\n"
unset -v proxy_auth
fi fi
printf " * Web proxy has authentication: $proxy_auth\n"
unset -v proxy_auth
printf "\n" printf "\n"
##################################################### #####################################################
@@ -161,7 +163,7 @@ if [ "$(cat /dev/net/tun 2>&1 /dev/null)" != "cat: read error: File descriptor i
mknod /dev/net/tun c 10 200 mknod /dev/net/tun c 10 200
exitOnError $? exitOnError $?
chmod 0666 /dev/net/tun chmod 0666 /dev/net/tun
printf "DONE\n" printf "DONE\n"
fi fi
############################################ ############################################