[freeside-commits] branch master updated. cba31c62f266311cca1af8d80ab8bfb6ea5fff31
Jeremy Davis
jeremyd at 420.am
Thu Nov 19 14:03:28 PST 2015
The branch, master has been updated
via cba31c62f266311cca1af8d80ab8bfb6ea5fff31 (commit)
from 86d92aec66af195a25fb0a5fd5505adde99fd66c (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 cba31c62f266311cca1af8d80ab8bfb6ea5fff31
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Nov 19 16:27: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