projects
/
weathermon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Убран отдельный скрипт инициализации (датчики инициализируются непосредственно...
[weathermon.git]
/
bin
/
dump-current
diff --git
a/bin/dump-current
b/bin/dump-current
index c7670b9b5351d29f096c84349b048a23e013a5af..953d0c073dfe9fc403675d292e94dbd48e1a7670 100755
(executable)
--- a/
bin/dump-current
+++ b/
bin/dump-current
@@
-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