ESP32 e-Paper info screen (client part).
[weathermon.git] / bin / dump-current
index c7670b9b5351d29f096c84349b048a23e013a5af..953d0c073dfe9fc403675d292e94dbd48e1a7670 100755 (executable)
@@ -1,7 +1,12 @@
 #!/bin/sh
 
 logdb=`uci get weathermon.process.logdb`
 #!/bin/sh
 
 logdb=`uci get weathermon.process.logdb`
-dumpdir=/var/weather/www
-mkdir -p $dumpdir
-/usr/bin/weather-filter $logdb dump-compacted - $dumpdir
+
+if [ -f "$logdb" ]; then
+
+  dumpdir=`uci get weathermon.process.working_dir`/www
+  mkdir -p $dumpdir
+  /usr/bin/weather-filter $logdb dump-compacted - $dumpdir
+
+fi