mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
TZ
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/usr/bin/env bashio
|
||||||
# shellcheck shell=bash
|
# 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 #
|
# SSL CONFIG v1.0 #
|
||||||
###################
|
###################
|
||||||
|
|||||||
Reference in New Issue
Block a user