11 lines
472 B
Bash
Executable File
11 lines
472 B
Bash
Executable File
#!/command/with-contenv bashio
|
|
# ==============================================================================
|
|
# Home Assistant Community Add-on: Base Images
|
|
# Configures the timezone
|
|
# ==============================================================================
|
|
if ! bashio::var.is_empty "${TZ}"; then
|
|
bashio::log.info "Configuring timezone"
|
|
|
|
ln --symbolic --no-dereference --force "/usr/share/zoneinfo/${TZ}" /etc/localtime
|
|
echo "${TZ}" > /etc/timezone
|
|
fi |