mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update iiab-mongodb-repair-if-no-lock.j2
This commit is contained in:
parent
5c55e16b06
commit
37591a612c
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! -f {{ mongodb_db_lock_file }} ]; then
|
if [ -f {{ mongodb_db_lock_file }} ]; then
|
||||||
/usr/bin/mongod --repair --dbpath {{ mongodb_db_path }}
|
|
||||||
else
|
|
||||||
echo '"mongod --repair" cannot run when {{ mongodb_db_lock_file }} present.' >&2 # Output to STDERR but keep going, so /etc/systems/system/mongodb.service continues
|
echo '"mongod --repair" cannot run when {{ mongodb_db_lock_file }} present.' >&2 # Output to STDERR but keep going, so /etc/systems/system/mongodb.service continues
|
||||||
|
else
|
||||||
|
/usr/bin/mongod --repair --dbpath {{ mongodb_db_path }}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue