mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-21 05:20:31 +02:00
Update 99-run.sh
This commit is contained in:
@@ -68,7 +68,7 @@ if [ -f "$f"/updater.json ]; then
|
|||||||
|
|
||||||
#Find current version
|
#Find current version
|
||||||
LOGINFO="... $SLUG : get current version" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
LOGINFO="... $SLUG : get current version" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||||
CURRENT=$(jq .upstream updater.json) || { bashio::log.error "$SLUG addon upstream tag not found in updater.json. Exiting."; continue; }
|
CURRENT=$(jq .upstream_version updater.json) || { bashio::log.error "$SLUG addon upstream tag not found in updater.json. Exiting."; continue; }
|
||||||
|
|
||||||
if [ "$SOURCE" = "dockerhub" ]; then
|
if [ "$SOURCE" = "dockerhub" ]; then
|
||||||
# Use dockerhub as upstream
|
# Use dockerhub as upstream
|
||||||
@@ -158,7 +158,7 @@ if [ -f "$f"/updater.json ]; then
|
|||||||
LASTVERSION=${LASTVERSION//\"/}
|
LASTVERSION=${LASTVERSION//\"/}
|
||||||
CURRENT=${CURRENT//\"/}
|
CURRENT=${CURRENT//\"/}
|
||||||
jq --arg variable "$LASTVERSION" '.version = $variable' /data/"${BASENAME}"/"${SLUG}"/config.json | sponge /data/"${BASENAME}"/"${SLUG}"/config.json # Replace version tag
|
jq --arg variable "$LASTVERSION" '.version = $variable' /data/"${BASENAME}"/"${SLUG}"/config.json | sponge /data/"${BASENAME}"/"${SLUG}"/config.json # Replace version tag
|
||||||
jq --arg variable "$LASTVERSION" '.upstream = $variable' /data/"${BASENAME}"/"${SLUG}"/updater.json | sponge /data/"${BASENAME}"/"${SLUG}"/updater.json # Replace upstream tag
|
jq --arg variable "$LASTVERSION" '.upstream_version = $variable' /data/"${BASENAME}"/"${SLUG}"/updater.json | sponge /data/"${BASENAME}"/"${SLUG}"/updater.json # Replace upstream tag
|
||||||
jq --arg variable "$DATE" '.last_update = $variable' /data/"${BASENAME}"/"${SLUG}"/updater.json | sponge /data/"${BASENAME}"/"${SLUG}"/updater.json # Replace date tag
|
jq --arg variable "$DATE" '.last_update = $variable' /data/"${BASENAME}"/"${SLUG}"/updater.json | sponge /data/"${BASENAME}"/"${SLUG}"/updater.json # Replace date tag
|
||||||
|
|
||||||
#Update changelog
|
#Update changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user