Remove timezone configuration from 00-env_var.sh

Removed timezone setting logic from the script.
This commit is contained in:
Alexandre
2025-11-06 13:37:52 +01:00
committed by GitHub
parent d19588a084
commit 0f195a6288

View File

@@ -142,15 +142,3 @@ for KEYS in "${arr[@]}"; do
export_option "$KEYS" "$VALUE"
fi
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