This commit is contained in:
midoks
2023-08-16 23:20:22 +08:00
parent c55c3c23d1
commit 8cb8a1bc70
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -31,6 +31,14 @@ Install_app()
echo '正在安装脚本文件...' > $install_tmp
mkdir -p $serverPath/source
if id mongodb &> /dev/null ;then
echo "mongodb uid is `id -u mongodb`"
echo "mongodb shell is `grep "^mongodb:" /etc/passwd |cut -d':' -f7 `"
else
groupadd mongodb
useradd -g mongodb mongodb
fi
shell_file=${curPath}/versions/${VERSION}/${OSNAME}.sh
if [ -f $shell_file ];then