2
0

feat: 支持统一替换系统名

This commit is contained in:
caiyuchao
2025-06-18 18:54:09 +08:00
parent 5ad9d7421d
commit ab2b7ee6f2
2 changed files with 7 additions and 0 deletions

View File

@@ -134,6 +134,12 @@ case "$1" in
rm $tmp_intermediate_conf
mv $tmp_nginx_conf $org_nginx_conf
# 统一替换系统名
nginx_html_zh=${docker_work_dir}/nginx/html/dist/u/langs/zh-cn.js
nginx_html_en=${docker_work_dir}/nginx/html/dist/u/langs/en-us.js
sed -i "3s|title: '.*'|title: '${SYSTEM_TITLE}'|" zh-cn.js
sed -i "3s|title: '.*'|title: '${SYSTEM_TITLE}'|" en-us.js
# chown and chmod for all docker work directory
if [ -d ${docker_work_dir}/mysql/data ]; then
chown -R 999:999 ${docker_work_dir}/mysql/data

View File

@@ -24,3 +24,4 @@ WFC_SERVER_IP=192.168.2.116
NACOS_SERVER_IP=${WFC_SERVER_IP}
GATEWAY_SERVER_IP=${WFC_SERVER_IP}
RESTART_OPTION=on-failure:5
SYSTEM_TITLE=MacroHub