diff --git a/build/script/build_opengauss.sh b/build/script/build_opengauss.sh index 040f62696..3cddad81a 100755 --- a/build/script/build_opengauss.sh +++ b/build/script/build_opengauss.sh @@ -128,7 +128,7 @@ while [ $# -gt 0 ]; do done if [ -e "$SCRIPT_DIR/utils/common.sh" ];then - source $SCRIPT_DIR/utils/common.sh + source $SCRIPT_DIR/utils/common.sh ${product_mode} else exit 1 fi diff --git a/build/script/package_opengauss.sh b/build/script/package_opengauss.sh index bd9f0f8d0..cb91955fc 100755 --- a/build/script/package_opengauss.sh +++ b/build/script/package_opengauss.sh @@ -104,7 +104,7 @@ while [ $# -gt 0 ]; do done if [ -e "$SCRIPT_DIR/utils/common.sh" ];then - source $SCRIPT_DIR/utils/common.sh + source $SCRIPT_DIR/utils/common.sh ${product_mode} else exit 1 fi diff --git a/build/script/utils/common.sh b/build/script/utils/common.sh index 98b655871..14e66bb58 100644 --- a/build/script/utils/common.sh +++ b/build/script/utils/common.sh @@ -12,6 +12,10 @@ bit=$(getconf LONG_BIT) if [ "$bit" -eq 64 ]; then declare PLATFORM=64 fi +product_mode=$1 +if [ "$product_mode" == "finance" ]; then + product_name="openGauss-Finance" +fi # 公共方法 #######################################################################