mirror of
https://github.com/hassio-addons/addon-chrony.git
synced 2025-05-05 11:41:38 +00:00
⬆️ Upgrades add-on base image to 12.0.0 (#114)
This commit is contained in:
parent
416554e503
commit
b0d90fb0b9
5 changed files with 15 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.1.0
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
|
||||||
# hadolint ignore=DL3006
|
# hadolint ignore=DL3006
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
# hadolint ignore=DL3003
|
# hadolint ignore=DL3003
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
chrony=4.1-r0
|
chrony=4.2-r0
|
||||||
|
|
||||||
# Copy root filesystem
|
# Copy root filesystem
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
build_from:
|
build_from:
|
||||||
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.0
|
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0
|
||||||
amd64: ghcr.io/hassio-addons/base/amd64:11.1.0
|
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0
|
||||||
armhf: ghcr.io/hassio-addons/base/armhf:11.1.0
|
armhf: ghcr.io/hassio-addons/base/armhf:12.0.0
|
||||||
armv7: ghcr.io/hassio-addons/base/armv7:11.1.0
|
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0
|
||||||
i386: ghcr.io/hassio-addons/base/i386:11.1.0
|
i386: ghcr.io/hassio-addons/base/i386:12.0.0
|
||||||
codenotary:
|
codenotary:
|
||||||
base_image: codenotary@frenck.dev
|
base_image: codenotary@frenck.dev
|
||||||
signer: codenotary@frenck.dev
|
signer: codenotary@frenck.dev
|
||||||
|
|
2
chrony/rootfs/etc/cont-init.d/chrony.sh
Normal file → Executable file
2
chrony/rootfs/etc/cont-init.d/chrony.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: chrony
|
# Home Assistant Community Add-on: chrony
|
||||||
# Configures chrony
|
# Configures chrony
|
||||||
|
|
10
chrony/rootfs/etc/services.d/chronyd/finish
Normal file → Executable file
10
chrony/rootfs/etc/services.d/chronyd/finish
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: chrony
|
# Home Assistant Community Add-on: chrony
|
||||||
# Take down the S6 supervision tree when chrony fails
|
# Take down the S6 supervision tree when chrony fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if -n { s6-test $# -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if -n { s6-test ${1} -eq 256 }
|
bashio::log.warning "chrony crashed, halting add-on"
|
||||||
|
/run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
bashio::log.info "chrony stopped, restarting..."
|
||||||
|
|
2
chrony/rootfs/etc/services.d/chronyd/run
Normal file → Executable file
2
chrony/rootfs/etc/services.d/chronyd/run
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: chrony
|
# Home Assistant Community Add-on: chrony
|
||||||
# Runs chrony daemon
|
# Runs chrony daemon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue