Implemented the fix regarding mongod error messages

This commit is contained in:
Bohdan Zhemelinskyi 2021-10-26 13:35:32 +00:00
parent bb4b7c52c1
commit cccf8db790

View File

@ -9,4 +9,8 @@ if [ ! -f /.dockerenv ]; then
mount -t tmpfs -o size=512m tmpfs /mnt/mongo-ramdisk
fi
chown -R mongodb:mongodb /mnt/mongo-ramdisk
if id mongod &> /dev/null; then
chown -R mongod:mongod /mnt/mongo-ramdisk
else
chown -R mongodb:mongodb /mnt/mongo-ramdisk
fi