perf: 构建工具调整
This commit is contained in:
@@ -78,7 +78,7 @@ fi
|
|||||||
if [ -n "$M_PARAM" ]; then
|
if [ -n "$M_PARAM" ]; then
|
||||||
# Check that mode is within the standard range
|
# Check that mode is within the standard range
|
||||||
if [[ "$M_PARAM" != "standard" && "$M_PARAM" != "lite" ]]; then
|
if [[ "$M_PARAM" != "standard" && "$M_PARAM" != "lite" ]]; then
|
||||||
echo "Error: -m can only be 'standard' or 'lite'."
|
echo "Error: M_PARAM can only be 'standard' or 'lite'."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sed -i "s/MODE=.*/MODE=${M_PARAM}/" $VariableFile
|
sed -i "s/MODE=.*/MODE=${M_PARAM}/" $VariableFile
|
||||||
@@ -91,7 +91,7 @@ fi
|
|||||||
if [ -n "$C_PARAM" ]; then
|
if [ -n "$C_PARAM" ]; then
|
||||||
# Check if customize is within the standard
|
# Check if customize is within the standard
|
||||||
if [[ "$C_PARAM" != "omc" && "$C_PARAM" != "agt" && "$C_PARAM" != "ba" ]]; then
|
if [[ "$C_PARAM" != "omc" && "$C_PARAM" != "agt" && "$C_PARAM" != "ba" ]]; then
|
||||||
echo "Error: -c can only be 'omc', 'agt' or 'ba'."
|
echo "Error: C_PARAM can only be 'omc', 'agt' or 'ba'."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sed -i "s/VENDORS=.*/VENDORS=${C_PARAM}/" $VariableFile
|
sed -i "s/VENDORS=.*/VENDORS=${C_PARAM}/" $VariableFile
|
||||||
@@ -101,9 +101,7 @@ fi
|
|||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
if [[ "$T_PARAM" == "install" && "$MODE" == "standard" ]]; then
|
if [[ "$T_PARAM" == "install" && "$MODE" == "standard" ]]; then
|
||||||
if command -v mysql &> /dev/null || command -v mariadb &> /dev/null; then
|
if ! command -v mysql &> /dev/null && ! command -v mariadb &> /dev/null; then
|
||||||
echo "MySQL or MariaDB installed"
|
|
||||||
else
|
|
||||||
echo "MySQL or MariaDB not installed"
|
echo "MySQL or MariaDB not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ if [ ! -f $RootDir/omc.conf ]; then
|
|||||||
fi
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Initialization failure."
|
echo "Initialization failure."
|
||||||
dpkg --purge omc
|
rm -rf $RootDir
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user