fix
This commit is contained in:
14
promtail/s6-overlay/etc/s6-rc/scripts/base-addon-timezone
Normal file
14
promtail/s6-overlay/etc/s6-rc/scripts/base-addon-timezone
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Base Images
|
||||
# Configures the timezone
|
||||
# ==============================================================================
|
||||
|
||||
set -x
|
||||
|
||||
bashio::log.info "Configuring timezone (${TZ:-None})..."
|
||||
|
||||
ln --symbolic --no-dereference --force "/usr/share/zoneinfo/${TZ:-UTC}" /etc/localtime
|
||||
echo "${TZ:-UTC}" > /etc/timezone
|
||||
dpkg-reconfigure --frontend noninteractive tzdata 2> /dev/null
|
||||
Reference in New Issue
Block a user