Permalink
Browse files

Better output if Cloud Services account isn't configured

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 7, 2019
1 parent 2fc6530 commit a21be39cf729653fe7cfa3f4abfa0d58ed35d242
Showing with 2 additions and 1 deletion.
  1. +2 −1 info.sh
@@ -311,7 +311,8 @@ elif [[ $COMMAND == "cloudauth" ]]; then
osbpass=$(cat /usr/local/share/nems/nems.conf | grep osbpass | printf '%s' $(cut -n -d '=' -f 2))
osbkey=$(cat /usr/local/share/nems/nems.conf | grep osbkey | printf '%s' $(cut -n -d '=' -f 2))
if [[ $osbpass == '' ]] || [[ $osbkey == '' ]]; then
echo NEMS Cloud is not currently enabled.
# echo NEMS Cloud is not currently enabled.
echo 0
exit
fi;
data=$(curl -s -F "hwid=$hwid" -F "osbkey=$osbkey" -F "query=status" https://nemslinux.com/api-backend/offsite-backup-checkin.php)

0 comments on commit a21be39

Please sign in to comment.