This commit is contained in:
Alexandre
2022-01-17 13:33:12 +01:00
parent 4bca8e9d74
commit 0205346557
4 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ done
################
# Set timezone #
################
if [ ! -z "TZ" ] && [ -f /etc/localtime ]; then
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