2
0

fix: 统一替换系统名

This commit is contained in:
caiyuchao
2025-06-19 09:51:46 +08:00
parent ab2b7ee6f2
commit 1608751e4f
3 changed files with 10 additions and 3 deletions

View File

@@ -137,8 +137,8 @@ case "$1" in
# 统一替换系统名
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
sed -i "3s|title: '.*'|title: '${SYSTEM_TITLE}'|" $nginx_html_zh
sed -i "3s|title: '.*'|title: '${SYSTEM_TITLE}'|" $nginx_html_en
# chown and chmod for all docker work directory
if [ -d ${docker_work_dir}/mysql/data ]; then