11
telegraf/rootfs/etc/conf-init.d/02-set-timezone.sh
Executable file
11
telegraf/rootfs/etc/conf-init.d/02-set-timezone.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user