mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-02 12:12:51 +02:00
dont check blitzapi if not installed
This commit is contained in:
@@ -188,6 +188,9 @@ echo "--> CHECK CONFIG: sudo nginx -t"
|
|||||||
sudo nginx -t
|
sudo nginx -t
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
if [ $(sudo systemctl status blitzapi 2>/dev/null | grep -c "blitzapi.service") -lt 1 ]; then
|
||||||
|
echo "- BLITZAPI is not running"
|
||||||
|
else
|
||||||
echo "*** BLITZAPI SYSTEMD STATUS ***"
|
echo "*** BLITZAPI SYSTEMD STATUS ***"
|
||||||
sudo systemctl status blitzapi -n2 --no-pager
|
sudo systemctl status blitzapi -n2 --no-pager
|
||||||
echo
|
echo
|
||||||
@@ -198,6 +201,7 @@ 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