mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
dont check blitzapi if not installed
This commit is contained in:
@@ -188,16 +188,20 @@ echo "--> CHECK CONFIG: sudo nginx -t"
|
|||||||
sudo nginx -t
|
sudo nginx -t
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "*** BLITZAPI SYSTEMD STATUS ***"
|
if [ $(sudo systemctl status blitzapi 2>/dev/null | grep -c "blitzapi.service") -lt 1 ]; then
|
||||||
sudo systemctl status blitzapi -n2 --no-pager
|
echo "- BLITZAPI is not running"
|
||||||
echo
|
else
|
||||||
|
echo "*** BLITZAPI SYSTEMD STATUS ***"
|
||||||
|
sudo systemctl status blitzapi -n2 --no-pager
|
||||||
|
echo
|
||||||
|
|
||||||
echo "*** LAST BLITZAPI LOGS ***"
|
echo "*** LAST BLITZAPI LOGS ***"
|
||||||
echo "sudo journalctl -u blitzapi -b --no-pager -n20"
|
echo "sudo journalctl -u blitzapi -b --no-pager -n20"
|
||||||
sudo journalctl -u nginx -b --no-pager -n20
|
sudo journalctl -u nginx -b --no-pager -n20
|
||||||
echo "--> CHECK CONFIG: sudo nginx -t"
|
echo "--> CHECK CONFIG: sudo nginx -t"
|
||||||
sudo nginx -t
|
sudo nginx -t
|
||||||
echo
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${touchscreen}" == "" ] || [ "${touchscreen}" == "0" ] || [ "${touchscreen}" == "off" ]; then
|
if [ "${touchscreen}" == "" ] || [ "${touchscreen}" == "0" ] || [ "${touchscreen}" == "off" ]; then
|
||||||
echo "- TOUCHSCREEN is OFF by config"
|
echo "- TOUCHSCREEN is OFF by config"
|
||||||
|
Reference in New Issue
Block a user