mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-26 14:17:17 +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
|
setup_mongodb
|
||||||
|
|
||||||
msg_info "Configuring MongoDB Replica Set"
|
msg_info "Configuring MongoDB Replica Set"
|
||||||
cat <<EOF >/etc/mongod.conf
|
cat <<EOF >>/etc/mongod.conf
|
||||||
|
|
||||||
replication:
|
replication:
|
||||||
replSetName: "rs0"
|
replSetName: "rs0"
|
||||||
|
|||||||
Reference in New Issue
Block a user