mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
7 lines
296 B
Django/Jinja
7 lines
296 B
Django/Jinja
#!/bin/bash
|
|
|
|
if [ -f {{ mongodb_db_lock_file }} ]; then
|
|
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
|