mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-19 01:46:18 +00:00
testing
This commit is contained in:
@@ -91,11 +91,11 @@ set_envvars() {
|
||||
printf "\n------------- SETTING ENVIRONMENT VARIABLES ----------------\n"
|
||||
|
||||
# If the timezone is different, for example in North-America or Asia.
|
||||
if [ "${TZ}" != "$(cat /etc/localtime)" ]; then
|
||||
if [ "${tz}" != "$(cat /etc/localtime)" ]; then
|
||||
echo "Changing timezone."
|
||||
|
||||
ln -sf /usr/share/zoneinfo/"${TZ}" /etc/localtime
|
||||
echo "${TZ}" > /etc/timezone
|
||||
ln -sf /usr/share/zoneinfo/"${tz}" /etc/localtime
|
||||
echo "${tz}" > /etc/timezone
|
||||
else
|
||||
echo "Timezone is set correctly."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user