03f61b3a3914b39e6db2b5375240ff91a8efc288
configuration/environments_scripts/repo/usr/local/bin/imageupgrade_functions.sh
| ... | ... | @@ -456,6 +456,11 @@ 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 |
|
| 460 | +# Disable FTDC to avoid crashes |
|
| 461 | +setParameter: |
|
| 462 | + diagnosticDataCollectionEnabled: false |
|
| 463 | +EOF |
|
| 459 | 464 | } |
| 460 | 465 | |
| 461 | 466 | # Copies the /root/secrets and /root/mail.properties file to the local instance, ensuring only root can read it |