Update install.sh

This commit is contained in:
midoks 2022-08-10 22:08:03 +08:00
parent 1a8e643c10
commit 7ef311d972
1 changed files with 5 additions and 5 deletions

View File

@ -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