perf: 构建工具调整
This commit is contained in:
@@ -19,17 +19,18 @@ if [ ! -f $RootDir/omc.conf ]; then
|
||||
|
||||
# read environment parameter and to do
|
||||
if [ -n "$M_PARAM" ] && [ -n "$C_PARAM" ]; then
|
||||
bash $RootDir/script/setup.sh -i -m $M_PARAM -c $C_PARAM
|
||||
bash $RootDir/script/setup.sh -i -m $M_PARAM -c $C_PARAM
|
||||
elif [ -n "$C_PARAM" ]; then
|
||||
bash $RootDir/script/setup.sh -i -c $C_PARAM
|
||||
bash $RootDir/script/setup.sh -i -c $C_PARAM
|
||||
else
|
||||
bash $RootDir/script/setup.sh -i
|
||||
bash $RootDir/script/setup.sh -i
|
||||
fi
|
||||
# exit while failed to run err
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Initialization failure."
|
||||
exit 1
|
||||
echo "Initialization failure."
|
||||
rm -rf $RootDir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf $RootDir/vendor
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
@@ -60,8 +60,8 @@ func ImportSQL() {
|
||||
processSQLFile(db, sqlPath)
|
||||
}
|
||||
|
||||
log.Println("Import SQL End")
|
||||
os.Exit(1)
|
||||
log.Println("process success")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
// 处理单个SQL文件的通用函数
|
||||
|
||||
Reference in New Issue
Block a user