mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-22 13:52:53 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user