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
|
||||||
echo -e ${GREEN} Success mongod Service is running | tee -a checklog.log
|
if [ $mongodstatus = active ]; then
|
||||||
printf >&2 "\n\n"
|
echo -e ${GREEN} Success mongod Service is running | tee -a checklog.log
|
||||||
else
|
printf >&2 "\n\n"
|
||||||
printf >&2 "\n\n" | tee -a checklog.log
|
else
|
||||||
echo -e ${RED} 'mongod Service isnt running (Tactical wont work without this)' | tee -a checklog.log
|
printf >&2 "\n\n" | tee -a checklog.log
|
||||||
printf >&2 "\n\n"
|
echo -e ${RED} 'mongod Service isnt running (Tactical wont work without this)' | tee -a checklog.log
|
||||||
|
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