mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 02:38:44 +00:00
fixed MongoDB diagnostics disabling (added missing sudo)
This commit is contained in:
@@ -456,11 +456,12 @@ EOF
|
||||
if ! grep "logRotate: reopen" /etc/mongod.conf; then
|
||||
sudo sed -i -e 's/^ logAppend: true/ logAppend: true\n logRotate: reopen/' /etc/mongod.conf
|
||||
fi
|
||||
cat >>/etc/mongod.conf << EOF
|
||||
sudo su - -c "cat >>/etc/mongod.conf << EOF
|
||||
# Disable FTDC to avoid crashes
|
||||
setParameter:
|
||||
diagnosticDataCollectionEnabled: false
|
||||
EOF
|
||||
"
|
||||
}
|
||||
|
||||
# Copies the /root/secrets and /root/mail.properties file to the local instance, ensuring only root can read it
|
||||
|
||||
@@ -32,7 +32,7 @@ else
|
||||
sudo mv imageupgrade_functions.sh /usr/local/bin
|
||||
# build-crontab
|
||||
. imageupgrade_functions.sh
|
||||
# Install MongoDB 5.0 and configure as replica set "replica"
|
||||
# Install MongoDB 7.0 and configure as replica set "replica"
|
||||
setup_mongo_7_0_on_AL2023
|
||||
sudo su - -c "cat << EOF >>/etc/mongod.conf
|
||||
replication:
|
||||
|
||||
Reference in New Issue
Block a user