File tree 3 files changed +13
-4
lines changed
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,15 @@ if [ -f /etc/redhat-release ]; then
117
117
systemctl daemon-reload
118
118
fi
119
119
120
+ # check and comment out journal: enabled: true in mongod.conf
121
+ CONF_FILE=" /etc/mongod.conf"
122
+ if grep -qP ' ^\s*journal\s*:\s*$' " $CONF_FILE " && grep -qP ' ^\s*enabled\s*:\s*true\s*$' " $CONF_FILE " ; then
123
+ echo " Commenting out journal: enabled: true in $CONF_FILE "
124
+ sed -i ' /^\s*journal\s*:/ { N; s/\(.*\n\s*\)\(enabled\s*:\s*true\s*$\)/# \1# \2/ }' " $CONF_FILE "
125
+ else
126
+ echo " Could not find 'journal: enabled: true' in $CONF_FILE or it's already commented."
127
+ fi
128
+
120
129
# mongodb might need to be started
121
130
systemctl restart mongod || echo " mongodb systemctl job does not exist"
122
131
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- VER=" 24.10 "
3
+ VER=" 24.12 "
4
4
5
5
CONTINUE=" $( countly check before upgrade db " $VER " ) "
6
6
22
22
23
23
if [ " $1 " != " combined" ]; then
24
24
# upgrade plugins
25
- countly plugin enable journey_engine;
26
25
countly plugin enable content;
26
+ countly plugin enable journey_engine;
27
27
nodejs " $DIR /scripts/install_plugins.js"
28
28
fi
29
29
Original file line number Diff line number Diff line change 2
2
3
3
echo " Running filesystem modifications"
4
4
5
- VER=" 24.10 "
5
+ VER=" 24.12 "
6
6
7
7
CONTINUE=" $( countly check before upgrade fs " $VER " ) "
8
8
23
23
# enable command line
24
24
bash " $DIR /scripts/detect.init.sh"
25
25
26
- countly plugin enable journey_engine;
27
26
countly plugin enable content;
27
+ countly plugin enable journey_engine;
28
28
29
29
# upgrade plugins
30
30
nodejs " $DIR /scripts/install_plugins.js"
You can’t perform that action at this time.
0 commit comments