asdf
This commit is contained in:
parent
6973d25480
commit
aac571e4c7
33
install.sh
33
install.sh
@ -23,20 +23,31 @@ if [[ $GATEWAY_NAME == "" ]]; then
|
|||||||
fi
|
fi
|
||||||
echo GATEWAY_NAME: $GATEWAY_NAME
|
echo GATEWAY_NAME: $GATEWAY_NAME
|
||||||
|
|
||||||
printf " Contact email: "
|
if [[ $GATEWAY_EMAIL == "" ]]; then
|
||||||
read GATEWAY_EMAIL
|
echo "ERROR: NO GATEWAY_EMAIL FOUND IN ENVIRONMENT"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo GATEWAY_EMAIL: $GATEWAY_EMAIL
|
||||||
|
|
||||||
printf " Latitude [0]: "
|
if [[ $GATEWAY_LAT == "" ]]; then
|
||||||
read GATEWAY_LAT
|
echo "ERROR: NO GATEWAY_LAT (latitude) FOUND IN ENVIRONMENT"
|
||||||
if [[ $GATEWAY_LAT == "" ]]; then GATEWAY_LAT=0; fi
|
exit 1
|
||||||
|
fi
|
||||||
|
echo GATEWAY_LAT: $GATEWAY_LAT
|
||||||
|
|
||||||
printf " Longitude [0]: "
|
if [[ $GATEWAY_LON == "" ]]; then
|
||||||
read GATEWAY_LON
|
echo "ERROR: NO GATEWAY_LON (longitude) FOUND IN ENVIRONMENT"
|
||||||
if [[ $GATEWAY_LON == "" ]]; then GATEWAY_LON=0; fi
|
exit 1
|
||||||
|
fi
|
||||||
|
echo GATEWAY_LON: $GATEWAY_LON
|
||||||
|
|
||||||
printf " Altitude [0]: "
|
if [[ $GATEWAY_ALT == "" ]]; then
|
||||||
read GATEWAY_ALT
|
echo "ERROR: NO GATEWAY_ALT (altitude) FOUND IN ENVIRONMENT"
|
||||||
if [[ $GATEWAY_ALT == "" ]]; then GATEWAY_ALT=0; fi
|
exit 1
|
||||||
|
fi
|
||||||
|
echo GATEWAY_ALT: $GATEWAY_ALT
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Check dependencies
|
# Check dependencies
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
|
@ -12,13 +12,12 @@ VERSION="master"
|
|||||||
if [[ $1 != "" ]]; then VERSION=$1; fi
|
if [[ $1 != "" ]]; then VERSION=$1; fi
|
||||||
|
|
||||||
echo "The Things Network Gateway installer"
|
echo "The Things Network Gateway installer"
|
||||||
echo "Version $VERSION"
|
echo ""
|
||||||
|
|
||||||
# Retrieve gateway configuration for later
|
# Retrieve gateway configuration for later
|
||||||
echo "Configuring gateway:"
|
echo "Configuring gateway:"
|
||||||
|
|
||||||
if [ $GATEWAY_NAME == "" ];
|
if [[ $GATEWAY_NAME == "" ]]; then
|
||||||
then
|
|
||||||
echo "ERROR: NO GATEWAY_NAME FOUND IN ENVIRONMENT"
|
echo "ERROR: NO GATEWAY_NAME FOUND IN ENVIRONMENT"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user