feat: timezone enhancement
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user