mongo check [skip ci]
This commit is contained in:
parent
d469d0b435
commit
b6e5d120d3
|
@ -246,16 +246,17 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# mongod Service
|
# mongod Service
|
||||||
if [ $mongodstatus = active ]; then
|
if grep -q mongo "/meshcentral/meshcentral-data/config.json"; then
|
||||||
|
if [ $mongodstatus = active ]; then
|
||||||
echo -e ${GREEN} Success mongod Service is running | tee -a checklog.log
|
echo -e ${GREEN} Success mongod Service is running | tee -a checklog.log
|
||||||
printf >&2 "\n\n"
|
printf >&2 "\n\n"
|
||||||
else
|
else
|
||||||
printf >&2 "\n\n" | tee -a checklog.log
|
printf >&2 "\n\n" | tee -a checklog.log
|
||||||
echo -e ${RED} 'mongod Service isnt running (Tactical wont work without this)' | tee -a checklog.log
|
echo -e ${RED} 'mongod Service isnt running (Tactical wont work without this)' | tee -a checklog.log
|
||||||
printf >&2 "\n\n"
|
printf >&2 "\n\n"
|
||||||
|
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# postgresql Service
|
# postgresql Service
|
||||||
if [ $postgresqlstatus = active ]; then
|
if [ $postgresqlstatus = active ]; then
|
||||||
echo -e ${GREEN} Success postgresql Service is running | tee -a checklog.log
|
echo -e ${GREEN} Success postgresql Service is running | tee -a checklog.log
|
||||||
|
|
Loading…
Reference in New Issue