Preserve default mongod.conf when configuring Anytype replica set

Overwriting /etc/mongod.conf with only the replication block wiped
out storage.dbPath from the mongodb-org package default, so mongod
fell back to its compiled-in /data/db path, which was never created.
Append the replication section instead of replacing the file.
This commit is contained in:
MickLesk
2026-07-21 22:52:14 +02:00
parent 3f7283ab66
commit 5f375d7b30
+1 -1
View File
@@ -16,7 +16,7 @@ update_os
setup_mongodb
msg_info "Configuring MongoDB Replica Set"
cat <<EOF >/etc/mongod.conf
cat <<EOF >>/etc/mongod.conf
replication:
replSetName: "rs0"