update new name
This commit is contained in:
parent
1ca4a74939
commit
ec1a0fd2c8
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue