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
if grep -q "TZ=" ${org_env_file}; then
sed "s|TZ=.*|TZ=${TIMEZONE}|" ${org_env_file} > $tmp_env_file
mv $tmp_env_file $org_env_file
else
echo "TZ=${TIMEZONE}" >> ${org_env_file}
fi
mv $tmp_env_file $org_env_file
# replace nginx.conf gateway server ip and port

View File

@@ -23,4 +23,4 @@ WFC_SERVER_IP=192.168.13.128
NACOS_SERVER_IP=${WFC_SERVER_IP}
GATEWAY_SERVER_IP=${WFC_SERVER_IP}
RESTART_OPTION=on-failure:5
TZ=Asia/Shanghai
TZ=Asia/Shanghai