This commit is contained in:
Ray Ozzie 2016-03-21 14:04:16 -07:00
parent 5e26f17bf3
commit a15147b36f
2 changed files with 9 additions and 5 deletions

View File

@ -15,14 +15,14 @@ echo "The Things Network Gateway installer"
echo "Version $VERSION" echo "Version $VERSION"
# Retrieve gateway configuration for later # Retrieve gateway configuration for later
echo "Configure your gateway:" echo "Configuring gateway:"
printf " Descriptive name [ttn-ic880a]:"
read GATEWAY_NAME
if [ $GATEWAY_NAME == "" ]; if [ $GATEWAY_NAME == "" ];
then then
echo "ERROR: NO GATEWAY SPECIFIED" echo "ERROR: NO GATEWAY_NAME FOUND IN ENVIRONMENT"
exit 1 exit 1
fi fi
echo GATEWAY_NAME: $GATEWAY_NAME
printf " Contact email: " printf " Contact email: "
read GATEWAY_EMAIL read GATEWAY_EMAIL

View File

@ -18,7 +18,11 @@ echo "Version $VERSION"
echo "Configure your gateway:" echo "Configure your gateway:"
printf " Descriptive name [ttn-ic880a]:" printf " Descriptive name [ttn-ic880a]:"
read GATEWAY_NAME read GATEWAY_NAME
if [[ $GATEWAY_NAME == "" ]]; then GATEWAY_NAME="ttn-ic880a"; fi if [ $GATEWAY_NAME == "" ];
then
echo "ERROR: NO GATEWAY SPECIFIED"
exit 1
fi
printf " Contact email: " printf " Contact email: "
read GATEWAY_EMAIL read GATEWAY_EMAIL