Add Debian 11 scripts

This commit is contained in:
2023-11-19 23:04:42 +01:00
parent d496861741
commit 8b08184b54
35 changed files with 1991 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main"> /etc/apt/sources.list.d/mongodb-org-4.4.list
apt update
apt install -y mongodb-org
DBPATH=/srv/mongodb
mkdir -p ${DBPATH}
chown mongodb:mongodb ${DBPATH}
chmod 700 ${DBPATH}
sed -i "/dbPath/c\ dbPath: ${DBPATH}" /etc/mongod.conf
systemctl enable mongod.service
systemctl restart mongod.service