From b95cb2633acc150f9b543295d008f128af9a4d92 Mon Sep 17 00:00:00 2001 From: frennkie Date: Thu, 23 Jul 2020 21:16:43 +0200 Subject: [PATCH 1/2] Update 00infoBlitz.sh --- home.admin/00infoBlitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index 19dd99e04..1e1849e0d 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -411,7 +411,7 @@ if [ "${EUID}" = "$(id -u pi)" ]; then EOF # use Jinja2 and apply json data to template to produce static html file - templateExists=$(sudo ls /var/cache/raspiblitz/info.html 2>/dev/null | grep -c 'info.html') + templateExists=$(sudo ls /var/www/blitzweb/info/info.j2 2>/dev/null | grep -c 'info.j2') if [ ${templateExists} -gt 0 ]; then res=$(/usr/local/bin/j2 /var/www/blitzweb/info/info.j2 /var/cache/raspiblitz/info.json -o /var/cache/raspiblitz/info.html) if ! [ $? -eq 0 ]; then From 449306e8db403e7e044f19955a4dcd470f47951c Mon Sep 17 00:00:00 2001 From: frennkie Date: Thu, 23 Jul 2020 21:17:35 +0200 Subject: [PATCH 2/2] Update 00infoBlitz.sh --- home.admin/00infoBlitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index 1e1849e0d..c1f3e434c 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -411,7 +411,7 @@ if [ "${EUID}" = "$(id -u pi)" ]; then EOF # use Jinja2 and apply json data to template to produce static html file - templateExists=$(sudo ls /var/www/blitzweb/info/info.j2 2>/dev/null | grep -c 'info.j2') + templateExists=$(sudo ls /var/cache/raspiblitz/info.json 2>/dev/null | grep -c 'info.json') if [ ${templateExists} -gt 0 ]; then res=$(/usr/local/bin/j2 /var/www/blitzweb/info/info.j2 /var/cache/raspiblitz/info.json -o /var/cache/raspiblitz/info.html) if ! [ $? -eq 0 ]; then