[freeside-commits] branch FREESIDE_3_BRANCH updated. bd62dd6eefaa5b1812627ee577951336912677c3
Jeremy Davis
jeremyd at 420.am
Thu Nov 19 14:04:50 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via bd62dd6eefaa5b1812627ee577951336912677c3 (commit)
from 0b3d1a9ce133e5d44da14364bb2323f1b6333769 (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 bd62dd6eefaa5b1812627ee577951336912677c3
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Nov 19 16:28:44 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