projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
101264d
)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
author
Mark Wells
<mark@freeside.biz>
Fri, 20 Nov 2015 22:51:40 +0000
(14:51 -0800)
committer
Mark Wells
<mark@freeside.biz>
Fri, 20 Nov 2015 22:51:40 +0000
(14:51 -0800)
debian/freeside-torrus.postinst
patch
|
blob
|
history
diff --git
a/debian/freeside-torrus.postinst
b/debian/freeside-torrus.postinst
index
5cc8acc
..
d39677e
100644
(file)
--- a/
debian/freeside-torrus.postinst
+++ b/
debian/freeside-torrus.postinst
@@
-2,6
+2,14
@@
chown freeside.freeside /var/log/torrus
chown -R freeside.freeside /var/torrus
-mkdir /srv/torrus/; mkdir /srv/torrus/collector_rrd
+
+if [ ! -d /srv/torrus/ ]; then
+mkdir /srv/torrus/;
+fi
+
+if [ ! -d /srv/torrus/collector_rrd ]; then
+mkdir /srv/torrus/collector_rrd;
+fi
+
chown -R freeside:freeside /srv/torrus/collector_rrd /usr/local/etc/torrus/discovery /usr/local/etc/torrus/xmlconfig/
torrus clearcache