From 7ef311d972407dada5f0738677ca5065d8e5a4a3 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 10 Aug 2022 22:08:03 +0800 Subject: [PATCH] Update install.sh --- plugins/postgresql/versions/14.4/install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/postgresql/versions/14.4/install.sh b/plugins/postgresql/versions/14.4/install.sh index 6dd3a80b8..ceae43324 100755 --- a/plugins/postgresql/versions/14.4/install.sh +++ b/plugins/postgresql/versions/14.4/install.sh @@ -20,12 +20,12 @@ Install_App() mkdir -p ${postgreDir} echo '正在安装脚本文件...' > $install_tmp - if id postgresql &> /dev/null ;then - echo "postgresql UID is `id -u postgresql`" - echo "postgresql Shell is `grep "^postgresql:" /etc/passwd |cut -d':' -f7 `" + if id postgres &> /dev/null ;then + echo "postgres UID is `id -u postgres`" + echo "postgres Shell is `grep "^postgres:" /etc/passwd |cut -d':' -f7 `" else - groupadd postgresql - useradd -g postgresql postgresql + groupadd postgres + useradd -g postgres postgres fi if [ "$sysName" != "Darwin" ];then