mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 09:11:50 +02:00
Update 02-timezone.sh
This commit is contained in:
@@ -17,6 +17,7 @@ fi
|
|||||||
ln -sf "/usr/share/zoneinfo/${TZ_VALUE}" /etc/localtime
|
ln -sf "/usr/share/zoneinfo/${TZ_VALUE}" /etc/localtime
|
||||||
echo "${TZ_VALUE}" > /etc/timezone
|
echo "${TZ_VALUE}" > /etc/timezone
|
||||||
export TZ="${TZ_VALUE}"
|
export TZ="${TZ_VALUE}"
|
||||||
|
sed -i "1a TZ=\"${TZ_VALUE}\"" /etc/services.d/*
|
||||||
|
|
||||||
# Update s6 container environment so child processes inherit the timezone
|
# Update s6 container environment so child processes inherit the timezone
|
||||||
if [ -d /var/run/s6/container_environment ]; then
|
if [ -d /var/run/s6/container_environment ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user