Update install.sh
This commit is contained in:
parent
1a8e643c10
commit
7ef311d972
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue