No ddns credentials for onion only system

This commit is contained in:
Bob Mottram 2016-01-04 11:55:48 +00:00
parent 42af2d86bf
commit bbbfd9dea0
1 changed files with 9 additions and 7 deletions

View File

@ -866,13 +866,15 @@ function parse_args {
exit 3 exit 3
fi fi
if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
if [ ! $DDNS_USERNAME ]; then if [[ $ONION_ONLY == "no" ]]; then
echo $'Please provide the username for your dynamic DNS provider with the --ddnsuser option' if [ ! $DDNS_USERNAME ]; then
exit 7823 echo $'Please provide the username for your dynamic DNS provider with the --ddnsuser option'
fi exit 7823
if [ ! $DDNS_PASSWORD ]; then fi
echo $'Please provide the password for your dynamic DNS provider with the --ddnspass option' if [ ! $DDNS_PASSWORD ]; then
exit 6382 echo $'Please provide the password for your dynamic DNS provider with the --ddnspass option'
exit 6382
fi
fi fi
fi fi
if [ ! $SYSTEM_TYPE ]; then if [ ! $SYSTEM_TYPE ]; then