perf: 构建工具调整

This commit is contained in:
TsMask
2025-03-18 17:17:17 +08:00
parent b0071400b1
commit 497c223a8f
2 changed files with 2 additions and 4 deletions

View File

@@ -81,7 +81,6 @@ if [ -n "$M_PARAM" ]; then
echo "Error: -m can only be 'standard' or 'lite'."
exit 1
fi
echo "Mode parameter: $M_PARAM"
sed -i "s/MODE=.*/MODE=${M_PARAM}/" $VariableFile
sed -i "s/serverVersion: \"standard\"/serverVersion: \"${M_PARAM}\"/" $confFile
MODE=$M_PARAM
@@ -95,7 +94,6 @@ if [ -n "$C_PARAM" ]; then
echo "Error: -c can only be 'omc', 'agt' or 'ba'."
exit 1
fi
echo "Customize parameter: $C_PARAM"
sed -i "s/VENDORS=.*/VENDORS=${C_PARAM}/" $VariableFile
VENDORS=$C_PARAM
fi
@@ -124,7 +122,7 @@ $OMCBinFile -c $confFile --sqlPath $OMCEtcDir/database/$MODE/$T_PARAM --sqlSourc
# ========================= Customize
if [[ "$T_PARAM" == "install" ]]; then
cp -rf $OMCEtcDir/vendor/$VENDORS/web/* $OMCEtcDir/web/background
cp -rf $OMCEtcDir/vendor/$VENDORS/static/* /usr/local/$VENDORS/static
cp -rf $OMCEtcDir/vendor/$VENDORS/static/* /usr/local/omc/static
$OMCBinFile -c $confFile --sqlPath $OMCEtcDir/vendor/$VENDORS/database/$MODE/customized.sql --sqlSource $MODE
fi

View File

@@ -27,7 +27,7 @@ if [ ! -f $RootDir/omc.conf ]; then
fi
if [ $? -ne 0 ]; then
echo "Initialization failure."
rm -rf $RootDir
dpkg --purge omc
exit 1
fi