mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-14 11:31:31 +02:00
Remove timezone configuration from 00-env_var.sh
Removed timezone setting logic from the script.
This commit is contained in:
@@ -142,15 +142,3 @@ for KEYS in "${arr[@]}"; do
|
|||||||
export_option "$KEYS" "$VALUE"
|
export_option "$KEYS" "$VALUE"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
################
|
|
||||||
# Set timezone #
|
|
||||||
################
|
|
||||||
set +eu
|
|
||||||
|
|
||||||
if [ -n "$TZ" ] && [ -f /etc/localtime ]; then
|
|
||||||
if [ -f /usr/share/zoneinfo/"$TZ" ]; then
|
|
||||||
echo "Timezone set from $(cat /etc/timezone) to $TZ"
|
|
||||||
ln -snf /usr/share/zoneinfo/"$TZ" /etc/localtime && echo "$TZ" > /etc/timezone
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user