Files
hassio-repo/promtail/s6-overlay/etc/s6-rc/scripts/base-addon-timezone
2023-08-25 13:32:28 +02:00

15 lines
553 B
Plaintext
Executable File

#!/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
ls -al /var/cache/debconf
dpkg-reconfigure --frontend noninteractive tzdata