Update troubleshoot_server.sh
Change SSL check as wasnt working and add output
This commit is contained in:
parent
2a20719130
commit
af7ff7f5cf
|
@ -309,9 +309,9 @@ fi
|
||||||
printf >&2 "\n\n"
|
printf >&2 "\n\n"
|
||||||
|
|
||||||
#SSL Certificate check
|
#SSL Certificate check
|
||||||
cert=$(openssl verify -CAfile /etc/letsencrypt/live/$domain/chain.pem /etc/letsencrypt/live/$domain/cert.pem)
|
cert=$(sudo certbot certificates)
|
||||||
|
|
||||||
if [[ "$cert" == *"OK"* ]]; then
|
if [[ "$cert" != *"INVALID"* ]]; then
|
||||||
echo -ne ${GREEN} SSL Certificate for $domain is fine | tee -a checklog.log
|
echo -ne ${GREEN} SSL Certificate for $domain is fine | tee -a checklog.log
|
||||||
printf >&2 "\n\n"
|
printf >&2 "\n\n"
|
||||||
|
|
||||||
|
@ -319,6 +319,10 @@ else
|
||||||
echo -ne ${RED} SSL Certificate has expired or doesnt exist for $domain | tee -a checklog.log
|
echo -ne ${RED} SSL Certificate has expired or doesnt exist for $domain | tee -a checklog.log
|
||||||
printf >&2 "\n\n"
|
printf >&2 "\n\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Get List of Certbot Certificates
|
||||||
|
sudo certbot certificates | tee -a checklog.log
|
||||||
|
|
||||||
echo -ne ${YELLOW} Getting summary output of logs | tee -a checklog.log
|
echo -ne ${YELLOW} Getting summary output of logs | tee -a checklog.log
|
||||||
|
|
||||||
tail /rmm/api/tacticalrmm/tacticalrmm/private/log/django_debug.log | tee -a checklog.log
|
tail /rmm/api/tacticalrmm/tacticalrmm/private/log/django_debug.log | tee -a checklog.log
|
||||||
|
|
Loading…
Reference in New Issue