From fcd482016c3349b3f3746393a34e3874d3e06021 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Fri, 1 Nov 2024 16:44:29 +0800 Subject: [PATCH] Optimize the packaging process --- misc/setomc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/setomc.sh b/misc/setomc.sh index 7b2b7de4..83b6b27a 100755 --- a/misc/setomc.sh +++ b/misc/setomc.sh @@ -68,6 +68,10 @@ case "${M_ARG}" in done cp -rf ${CustomizedDir}/logo/* ${OMCStaticDir}/logo cp -rf ${CustomizedDir}/doc/* ${OMCStaticDir}/helpDoc + if [ "${C_ARG_LOWER}" == "ba" ]; then + rm -rf ${OMCStaticDir}/logo/zh_* + rm -rf ${OMCStaticDir}/helpDoc/zh_* + fi #perl -0777 -i -pe 's/omcuser/bluearcus/g' ${OMCRootDir}/etc/default/restconf.yaml #perl -0777 -i -pe 's/omcuser/bluearcus/g' ${OMCBinDir}/nehosts if [ $? = 0 ]; then @@ -91,6 +95,10 @@ case "${M_ARG}" in done cp -rf ${CustomizedDir}/logo/* ${OMCStaticDir}/logo cp -rf ${CustomizedDir}/doc/* ${OMCStaticDir}/helpDoc + if [ "${C_ARG_LOWER}" == "ba" ]; then + rm -rf ${OMCStaticDir}/logo/zh_* + rm -rf ${OMCStaticDir}/helpDoc/zh_* + fi if [ $? = 0 ]; then echo "done" fi