pipe nginx check results into stdout

This commit is contained in:
rootzoll
2021-12-18 01:04:51 +01:00
parent aca06e05ed
commit 1b7f9d51d8

View File

@@ -185,7 +185,7 @@ echo "*** LAST NGINX LOGS ***"
echo "sudo journalctl -u nginx -b --no-pager -n20"
sudo journalctl -u nginx -b --no-pager -n20
echo "--> CHECK CONFIG: sudo nginx -t"
sudo nginx -t
sudo nginx -t 2>&1
echo
if [ $(sudo systemctl status blitzapi 2>/dev/null | grep -c "blitzapi.service") -lt 1 ]; then
@@ -198,8 +198,6 @@ else
echo "*** LAST BLITZAPI LOGS ***"
echo "sudo journalctl -u blitzapi -b --no-pager -n20"
sudo journalctl -u nginx -b --no-pager -n20
echo "--> CHECK CONFIG: sudo nginx -t"
sudo nginx -t
echo
fi