[freeside-commits] branch FREESIDE_4_BRANCH updated. 5d96e15a61121e8e0c4479363d6a612e702a10da
Jeremy Davis
jeremyd at 420.am
Thu Nov 19 14:04:20 PST 2015
The branch, FREESIDE_4_BRANCH has been updated
via 5d96e15a61121e8e0c4479363d6a612e702a10da (commit)
from 3f494b140d6005e41ca51fff3d054e94ababffd7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5d96e15a61121e8e0c4479363d6a612e702a10da
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Nov 19 16:28:03 2015 -0500
Ticket #38682 freeside-torrus avoid warnings on upgrades
diff --git a/debian/freeside-torrus.postinst b/debian/freeside-torrus.postinst
index 5cc8acc..d39677e 100644
--- 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
-----------------------------------------------------------------------
Summary of changes:
debian/freeside-torrus.postinst | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list