2
0

feat: timezone enhancement

This commit is contained in:
zhangsz
2025-02-14 00:47:29 +11:00
parent 40f63ffe22
commit 2ae37cc588
2 changed files with 2 additions and 3 deletions

View File

@@ -99,11 +99,10 @@ case "$1" in
fi fi
if grep -q "TZ=" ${org_env_file}; then if grep -q "TZ=" ${org_env_file}; then
sed "s|TZ=.*|TZ=${TIMEZONE}|" ${org_env_file} > $tmp_env_file sed "s|TZ=.*|TZ=${TIMEZONE}|" ${org_env_file} > $tmp_env_file
mv $tmp_env_file $org_env_file
else else
echo "TZ=${TIMEZONE}" >> ${org_env_file} echo "TZ=${TIMEZONE}" >> ${org_env_file}
fi fi
mv $tmp_env_file $org_env_file
# replace nginx.conf gateway server ip and port # replace nginx.conf gateway server ip and port