configuration/environments_scripts/repo/usr/local/bin/imageupgrade_functions.sh
... ...
@@ -456,11 +456,12 @@ EOF
456 456
if ! grep "logRotate: reopen" /etc/mongod.conf; then
457 457
sudo sed -i -e 's/^ logAppend: true/ logAppend: true\n logRotate: reopen/' /etc/mongod.conf
458 458
fi
459
- cat >>/etc/mongod.conf << EOF
459
+sudo su - -c "cat >>/etc/mongod.conf << EOF
460 460
# Disable FTDC to avoid crashes
461 461
setParameter:
462 462
diagnosticDataCollectionEnabled: false
463 463
EOF
464
+"
464 465
}
465 466
466 467
# Copies the /root/secrets and /root/mail.properties file to the local instance, ensuring only root can read it
configuration/environments_scripts/sailing_server/setup-sailing-server.sh
... ...
@@ -32,7 +32,7 @@ else
32 32
sudo mv imageupgrade_functions.sh /usr/local/bin
33 33
# build-crontab
34 34
. imageupgrade_functions.sh
35
- # Install MongoDB 5.0 and configure as replica set "replica"
35
+ # Install MongoDB 7.0 and configure as replica set "replica"
36 36
setup_mongo_7_0_on_AL2023
37 37
sudo su - -c "cat << EOF >>/etc/mongod.conf
38 38
replication: