update new name

This commit is contained in:
Pascal Vizeli 2017-04-23 23:29:41 +02:00
parent 1ca4a74939
commit ec1a0fd2c8
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ do
if [ ${parse[0]} == "info" ]; then if [ ${parse[0]} == "info" ]; then
HOSTNAME=$(hostname) HOSTNAME=$(hostname)
CURRENT=$(curl -s $URL_VERSION | jq -e -r '.generic-hc_version') CURRENT=$(curl -s $URL_VERSION | jq -e -r '.generic_hc_version')
echo "{ \"level\": 7, \"os\": \"generic\", \"version\": \"$VERSION\", \"current\": \"$CURRENT\", \"hostname\": \"$HOSTNAME\" }" echo "{ \"level\": 7, \"os\": \"generic\", \"version\": \"$VERSION\", \"current\": \"$CURRENT\", \"hostname\": \"$HOSTNAME\" }"
continue continue
@ -46,7 +46,7 @@ do
if [ ! -z ${parse[1]} ]; then if [ ! -z ${parse[1]} ]; then
VERSION=${parse[1]} VERSION=${parse[1]}
else else
VERSION=$(curl -s $URL_VERSION | jq -e -r '.generic-hc_version') VERSION=$(curl -s $URL_VERSION | jq -e -r '.generic_hc_version')
fi fi
CMD_BIN=$(command -v hassio-hc) CMD_BIN=$(command -v hassio-hc)

View file

@ -93,7 +93,7 @@ fi
# Read infos from web # Read infos from web
HASSIO_VERSION=$(curl -s $URL_VERSION | jq -e -r '.hassio_tag') HASSIO_VERSION=$(curl -s $URL_VERSION | jq -e -r '.hassio_tag')
GENERIC_HC_VERSION=$(curl -s $URL_VERSION | jq -e -r '.generic-hc_version') GENERIC_HC_VERSION=$(curl -s $URL_VERSION | jq -e -r '.generic_hc_version')
## ##
# Install supervisor # Install supervisor