feat: 支持统一替换系统名
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user