Conditions not needed for the mesh variant

This commit is contained in:
Bob Mottram 2015-07-19 15:52:21 +01:00
parent 435c265f71
commit 951489c0cd
1 changed files with 9 additions and 7 deletions

View File

@ -703,13 +703,15 @@ function parse_args {
show_help show_help
exit 3 exit 3
fi fi
if [ ! $DDNS_USERNAME ]; then if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; 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
if [ ! $SYSTEM_TYPE ]; then if [ ! $SYSTEM_TYPE ]; then
SYSTEM_TYPE=$VARIANT_FULL SYSTEM_TYPE=$VARIANT_FULL