perf: 构建工具调整
This commit is contained in:
@@ -85,6 +85,11 @@ echo "Type parameter: $T_PARAM"
|
||||
|
||||
# Determine if -m is passed in
|
||||
if [ -n "$M_PARAM" ]; then
|
||||
# Check that mode is within the standard range
|
||||
if [[ "$mode" != "standard" && "$mode" != "lite" ]]; 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
|
||||
@@ -94,6 +99,11 @@ echo "Mode parameter: $MODE"
|
||||
|
||||
# Determine if -c is passed in
|
||||
if [ -n "$C_PARAM" ]; then
|
||||
# Check if customize is within the standard
|
||||
if [[ "$customize" != "omc" && "$customize" != "agt" && "$customize" != "ba" ]]; 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
|
||||
@@ -110,4 +120,4 @@ $OMCBinFile -c $confFile --sqlPath $OMCEtcDir/database/$DBSource/$T_PARAM --sqlS
|
||||
|
||||
customize
|
||||
|
||||
# bash setup.sh -i -m std -c omc
|
||||
# bash setup.sh -i -m standard -c omc
|
||||
|
||||
Reference in New Issue
Block a user