Preserve default mongod.conf when configuring Anytype replica set (#15954)

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:
CanbiZ (MickLesk)
2026-07-22 08:18:12 +02:00
committed by GitHub
parent b2d54f2a72
commit e4d0e743e4
+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"