-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates from dianlight/hassio-addons@554087e
- Loading branch information
ffp-bot
committed
Dec 21, 2024
1 parent
e6408d2
commit 28f477f
Showing
13 changed files
with
252 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
build_from: | ||
aarch64: ghcr.io/hassio-addons/base:16.3.6 | ||
amd64: ghcr.io/hassio-addons/base:16.3.6 | ||
armv7: ghcr.io/hassio-addons/base:16.3.6 | ||
codenotary: | ||
signer: [email protected] | ||
base_image: [email protected] | ||
cosign: | ||
# base_identity: https://github.com/home-assistant/builder/.* | ||
identity: https://github.com/dianlight/hassio-addons/.* | ||
aarch64: ghcr.io/hassio-addons/base:17.0.0 | ||
amd64: ghcr.io/hassio-addons/base:17.0.0 | ||
armv7: ghcr.io/hassio-addons/base:17.0.0 | ||
#codenotary: | ||
# signer: [email protected] | ||
# base_image: [email protected] | ||
#cosign: | ||
# #base_identity: https://github.com/home-assistant/builder/.* | ||
# identity: https://github.com/dianlight/hassio-addons/.* | ||
args: | ||
HDDTEMP_VERSION: "0.3-beta15" | ||
# HDDTEMP_VERSION: "0.3-beta15" | ||
SRAT_VERSION: "v2024.12.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/with-contenv bashio | ||
# ============================================================================== | ||
# Take down the S6 supervision tree based on service exit code | ||
# ============================================================================== | ||
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then | ||
bashio::log.warning "srat crashed, halting add-on" | ||
exec /run/s6/basedir/bin/halt | ||
fi | ||
|
||
bashio::log.info "srat stopped" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/command/with-contenv bashio | ||
# ============================================================================== | ||
# Start srat service | ||
# ============================================================================== | ||
|
||
PRERELEASE_TAG=$(curl -s https://api.github.com/repos/dianlight/srat/releases | jq -r 'map(select(.prerelease)) | .[0].tag_name') | ||
RELEASE_TAG=$(curl -s https://api.github.com/repos/dianlight/srat/releases | jq -r 'map(select(.release)) | .[0].tag_name') | ||
|
||
if bashio::config.has_value 'update_srat_onstart'; then | ||
bashio::log.info "Update on start: $(bashio::config 'update_srat_onstart')" | ||
if bashio::config.equals 'update_srat_onstart' 'release'; then | ||
bashio::log.info "Updating to ${RELEASE_TAG}" | ||
curl -L https://github.com/dianlight/srat/releases/download/${RELEASE_TAG}/srat_$(arch) >/usr/local/bin/srat | ||
#gh -R dianlight/srat release download $RELEASE_TAG -p "srat_$(arch)" -O /usr/local/bin/srat --clobber | ||
else | ||
bashio::log.info "Updating to ${PRERELEASE_TAG}" | ||
curl -L https://github.com/dianlight/srat/releases/download/${PRERELEASE_TAG}/srat_$(arch) >/usr/local/bin/srat | ||
#gh -R dianlight/srat release download $PRERELEASE_TAG -p "srat_$(arch)" -O /usr/local/bin/srat --clobber | ||
fi | ||
chmod +x /usr/local/bin/srat | ||
fi | ||
|
||
# s6-svc -r /var/run/s6/services/<service name> | ||
exec /usr/local/bin/srat \ | ||
-port 3000 \ | ||
-conf /config/bootconfig.json \ | ||
-ro true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
longrun |
Empty file.
Oops, something went wrong.