mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-27 06:53:25 +01:00
TZ
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
############
|
||||
# TIMEZONE #
|
||||
############
|
||||
|
||||
if bashio::config.has_value 'TZ' && [ -f /etc/localtime ]; then
|
||||
TIMEZONE=$(bashio::config 'TZ')
|
||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
||||
echo "$TIMEZONE" >/etc/timezone
|
||||
fi
|
||||
|
||||
###################
|
||||
# SSL CONFIG v1.0 #
|
||||
###################
|
||||
|
||||
Reference in New Issue
Block a user