From 90559b47617f7ecd9646a29fe2d4bddf26a2e009 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 23 Oct 2025 22:02:01 +0800 Subject: [PATCH] bugfix --- build.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 96425f8..9052cce 100755 --- a/build.sh +++ b/build.sh @@ -19,18 +19,26 @@ do $cdir/py3/bin/pip install . done dir=$(pwd) -for m in appbase rbac accounting llmage platformbiz msp cpcc pf_pay filemgr dapi uapi rag +for m in appbase rbac accounting llmage platformbiz msp cpcc pf_pay filemgr dapi uapi rag charge do echo "install $m module..." cd $dir git clone https://git.opencomputing.cn/yumoqing/$m cd $dir/$m $cdir/py3/bin/pip install . - cd $dir/$m/models - xls2ddl mysql . > mysql.ddl.sql - mysql -h db -utest -ptest123 sage < mysql.ddl.sql - cd $dir/$m/json - ./build.sh + if [ -d $dir/$m/models ];then + cd $dir/$m/models + xls2ddl mysql . > mysql.ddl.sql + mysql -h db -utest -ptest123 sage < mysql.ddl.sql + fi + if [ -d $dir/$m/json ];then + cd $dir/$m/json + ./build.sh + fi + if [ -d $dir/$m/data ]; then + cd $dir/$m/data + dbloader $dir sage data.xlsx + fi rm $cdir/wwwroot/$m ln -s $dir/$m/wwwroot $cdir/wwwroot/$m done