diff --git a/build/script/package_opengauss.sh b/build/script/package_opengauss.sh index 2dd04b4c1..dc77975c7 100755 --- a/build/script/package_opengauss.sh +++ b/build/script/package_opengauss.sh @@ -310,6 +310,7 @@ function target_file_copy() copy_files_list "$1" $2 cp ${SCRIPT_DIR}/version.cfg ${BUILD_DIR}/temp + cp -rf ${SCRIPT_DIR}/../../simpleInstall ${BUILD_DIR}/temp if [ $? -ne 0 ]; then die "copy ${SCRIPT_DIR}/version.cfg to ${BUILD_DIR}/temp failed" fi diff --git a/simpleInstall/install.sh b/simpleInstall/install.sh index 02a395af0..9208a7194 100644 --- a/simpleInstall/install.sh +++ b/simpleInstall/install.sh @@ -99,7 +99,7 @@ function check_os() { local shmall=$(cat /proc/sys/kernel/shmall) local pagesize=$(getconf PAGESIZE) - if [ $(($shared_buffers/1024/1024-$shmall/1024/1024*$pagesize)) -gt 0 ]; then + if [ $(($shared_buffers/1024/1024/1024-$shmall/1024/1024/1024*$pagesize)) -gt 0 ]; then echo "The usage of the device [Shared_buffers] space cannot be greater than shmall*PAGESIZE." && exit 1 fi