Simplify tor-wifi installation
This commit is contained in:
parent
ff53f9010c
commit
e1a86ee203
|
@ -385,12 +385,25 @@ function argument_checks {
|
|||
show_help
|
||||
exit 2
|
||||
fi
|
||||
if [ ! $MY_USERNAME ]; then
|
||||
if [[ $DOMAIN_NAME == "tor-wifi" || $DOMAIN_NAME == "torwifi" || $DOMAIN_NAME == "tor-hotspot" || $DOMAIN_NAME == "torhotspot" || $DOMAIN_NAME == "tor-access-point" || $DOMAIN_NAME == "tor" || $DOMAIN_NAME == "tor-dongle" || $DOMAIN_NAME == "tordongle" ]]; then
|
||||
if [ -d /home/tor ]; then
|
||||
$MY_USERNAME="tor"
|
||||
fi
|
||||
if [ -d /home/toruser ]; then
|
||||
$MY_USERNAME="toruser"
|
||||
fi
|
||||
if [ ! $MY_USERNAME ]; then
|
||||
show_help
|
||||
exit 3
|
||||
fi
|
||||
else
|
||||
show_help
|
||||
exit 3
|
||||
fi
|
||||
fi
|
||||
if [ ! $FREEDNS_SUBDOMAIN_CODE ]; then
|
||||
if [[ $DOMAIN_NAME == "tor-wifi" || $DOMAIN_NAME == "torwifi" ]]; then
|
||||
if [[ $DOMAIN_NAME == "tor-wifi" || $DOMAIN_NAME == "torwifi" || $DOMAIN_NAME == "tor-hotspot" || $DOMAIN_NAME == "torhotspot" || $DOMAIN_NAME == "tor-access-point"]]; then
|
||||
DOMAIN_NAME="tor-wifi"
|
||||
SYSTEM_TYPE=$VARIANT_TOR_WIFI
|
||||
ROUTE_THROUGH_TOR="yes"
|
||||
|
|
Loading…
Reference in New Issue