X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/aa93d9c75aad23c01d984b780adf5e0ef4435bb1..3cde6e4128c98b6b9c35f52fff560e4f20e2d4d8:/bin/dump-current diff --git a/bin/dump-current b/bin/dump-current index 5b3761f..953d0c0 100755 --- a/bin/dump-current +++ b/bin/dump-current @@ -1,7 +1,12 @@ #!/bin/sh logdb=`uci get weathermon.process.logdb` -dumpdir=`uci get weathermon.process.working_dir`/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