-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Upgrades add-on base image to 12.0.0 (#141)
- Loading branch information
Showing
7 changed files
with
28 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
build_from: | ||
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.0 | ||
amd64: ghcr.io/hassio-addons/base/amd64:11.1.0 | ||
armhf: ghcr.io/hassio-addons/base/armhf:11.1.0 | ||
armv7: ghcr.io/hassio-addons/base/armv7:11.1.0 | ||
i386: ghcr.io/hassio-addons/base/i386:11.1.0 | ||
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0 | ||
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0 | ||
armhf: ghcr.io/hassio-addons/base/armhf:12.0.0 | ||
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0 | ||
i386: ghcr.io/hassio-addons/base/i386:12.0.0 | ||
codenotary: | ||
base_image: [email protected] | ||
signer: [email protected] |
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
10 changes: 6 additions & 4 deletions
10
log-viewer/rootfs/etc/services.d/logviewer/finish
100644 → 100755
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,9 +1,11 @@ | ||
#!/usr/bin/execlineb -S0 | ||
#!/command/with-contenv bashio | ||
# ============================================================================== | ||
# Home Assistant Community Add-on: Log Viewer | ||
# Take down the S6 supervision tree when Log Viewer fails | ||
# ============================================================================== | ||
if -n { s6-test $# -ne 0 } | ||
if -n { s6-test ${1} -eq 256 } | ||
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then | ||
bashio::log.warning "Log Viewer crashed, halting add-on" | ||
/run/s6/basedir/bin/halt | ||
fi | ||
|
||
s6-svscanctl -t /var/run/s6/services | ||
bashio::log.info "Log Viewer stopped, restarting..." |
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
12 changes: 7 additions & 5 deletions
12
log-viewer/rootfs/etc/services.d/nginx/finish
100644 → 100755
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,9 +1,11 @@ | ||
#!/usr/bin/execlineb -S0 | ||
#!/command/with-contenv bashio | ||
# ============================================================================== | ||
# Home Assistant Community Add-on: Log Viewer | ||
# Take down the S6 supervision tree when Nginx fails | ||
# Take down the S6 supervision tree when NGINX fails | ||
# ============================================================================== | ||
if { s6-test ${1} -ne 0 } | ||
if { s6-test ${1} -ne 256 } | ||
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then | ||
bashio::log.warning "NGINX crashed, halting add-on" | ||
/run/s6/basedir/bin/halt | ||
fi | ||
|
||
s6-svscanctl -t /var/run/s6/services | ||
bashio::log.info "NGINX stopped, restarting..." |
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,11 +1,11 @@ | ||
#!/usr/bin/with-contenv bashio | ||
#!/command/with-contenv bashio | ||
# ============================================================================== | ||
# Home Assistant Community Add-on: Log Viewer | ||
# Runs the Nginx daemon | ||
# Runs the NGINX daemon | ||
# ============================================================================== | ||
|
||
# Wait for the Log Viewer to become available | ||
bashio::net.wait_for 4277 | ||
|
||
bashio::log.info "Starting NGinx..." | ||
bashio::log.info "Starting NGINX..." | ||
exec nginx |