From df0d59309f2d24adb2e8ebe608b36c5ebcba2b38 Mon Sep 17 00:00:00 2001 From: chendong76 <1209756284@qq.com> Date: Tue, 29 Sep 2020 16:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC=E4=B8=AD=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=B7=AF=E5=BE=84=E6=9C=AA=E7=94=9F=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpleInstall/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simpleInstall/install.sh b/simpleInstall/install.sh index d59be05cb..8713435f6 100644 --- a/simpleInstall/install.sh +++ b/simpleInstall/install.sh @@ -23,7 +23,10 @@ function fn_get_param() system_arch=`uname -p` system_name=`cat /etc/os-release | grep '^ID=".*' | grep -o -E '(openEuler|centos)'` install_tar="/home/$user_name/openGaussTar" #安装包所在路径(可修改) - install_location="/opt/$user_name" #数据库安装位置(可修改) + if [ ! $install_location ] + then + install_location="/opt/$user_name" #数据库安装位置(可修改) + fi } function fn_prase_input_param()