From f4fd0189edf7bc33e135c172b25e386bfcbd3cfb Mon Sep 17 00:00:00 2001 From: huchangqi Date: Thu, 15 Aug 2024 16:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E9=80=9A=E7=94=A8=E6=88=B7=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9D=83=E9=99=90=20ulimit,=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=89=93=E5=8C=85=E5=90=8D=E7=A7=B0=E5=8F=98=E6=88=90=20loongn?= =?UTF-8?q?ix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/script/cmake_package_mini.sh | 2 ++ build/script/utils/common.sh | 2 ++ simpleInstall/install.sh | 8 ++++---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/script/cmake_package_mini.sh b/build/script/cmake_package_mini.sh index a02796dc2..cfe15d5de 100644 --- a/build/script/cmake_package_mini.sh +++ b/build/script/cmake_package_mini.sh @@ -48,6 +48,8 @@ elif [ X"$kernel" == X"centos" ]; then dist_version="CentOS" elif [ X"$kernel" == X"openeuler" ]; then dist_version="openEuler" +elif [ X"$kernel" == X"loongnix-server" ]; then + dist_version="loongnix" else dist_version="Platform" fi diff --git a/build/script/utils/common.sh b/build/script/utils/common.sh index a34eca825..e4d909015 100644 --- a/build/script/utils/common.sh +++ b/build/script/utils/common.sh @@ -77,6 +77,8 @@ elif [[ -f "/etc/kylin-release" ]]; then os_name="Kylin" elif [[ -f "/etc/asianux-release" ]]; then os_name="Asianux" +elif [[ -f "/etc/loongnix-release" ]]; then + os_name="loongnix" else os_name=$(lsb_release -d | awk -F ' ' '{print $2}'| tr A-Z a-z | sed 's/.*/\L&/; s/[a-z]*/\u&/g') fi diff --git a/simpleInstall/install.sh b/simpleInstall/install.sh index 0a38bc076..062d13c26 100644 --- a/simpleInstall/install.sh +++ b/simpleInstall/install.sh @@ -200,10 +200,10 @@ function set_environment() { then echo 'export GS_CLUSTER_NAME=dbCluster' >> ~/.bashrc fi - if [ X"$(grep 'ulimit -n 1000000' ~/.bashrc)" == X"" ] - then - echo 'ulimit -n 1000000' >> ~/.bashrc - fi + #if [ X"$(grep 'ulimit -n 1000000' ~/.bashrc)" == X"" ] + #then + # echo 'ulimit -n 1000000' >> ~/.bashrc + #fi # set GAUSSHOME path_env_line=$(cat ~/.bashrc | grep -n 'export PATH=$GAUSSHOME/bin:$PATH' | awk -F ':' '{print $1}') ld_env_line=$(grep -n 'export LD_LIBRARY_PATH=$GAUSSHOME/lib:$LD_LIBRARY_PATH' ~/.bashrc | awk -F ':' '{print $1}')