4.2in E-Paper 3-color weather screen
[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