X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/e32107a7fe79ce34f3bdf860410a6d5455efdca7..5f23c8a7c56799750221a9c2d8e904e154f8c515:/bin/dump-current?ds=sidebyside diff --git a/bin/dump-current b/bin/dump-current index c7670b9..953d0c0 100755 --- a/bin/dump-current +++ b/bin/dump-current @@ -1,7 +1,12 @@ #!/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