test
This commit is contained in:
12
addon-ubuntu-base/s6-overlay/etc/s6-rc/scripts/base-addon-timezone
Executable file
12
addon-ubuntu-base/s6-overlay/etc/s6-rc/scripts/base-addon-timezone
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Base Images
|
||||
# Configures the timezone
|
||||
# ==============================================================================
|
||||
|
||||
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