1
0
Fork 0

add alternative to timezone setting in case timedatectl doesn't work

This commit is contained in:
Pratham Patel 2023-01-21 18:55:40 +05:30
parent 61668d7658
commit 92bc61e245
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ fi
WHAT_IS_MY_TZ=$(readlink /etc/localtime)
if [[ ! $WHAT_IS_MY_TZ =~ "Asia/Kolkata" ]]; then
timedatectl set-timezone Asia/Kolkata
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
WHAT_IS_MY_TZ=whoopsie
fi