mongo check [skip ci]

This commit is contained in:
wh1te909 2023-07-11 01:06:45 +00:00
parent d469d0b435
commit b6e5d120d3
1 changed files with 9 additions and 8 deletions

View File

@ -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