[freeside-commits] branch FREESIDE_4_BRANCH updated. 4236fc4ad0d80b80bbdf1e013976f0bbe85fcf16
Jeremy Davis
jeremyd at 420.am
Thu Jun 25 08:19:03 PDT 2015
The branch, FREESIDE_4_BRANCH has been updated
via 4236fc4ad0d80b80bbdf1e013976f0bbe85fcf16 (commit)
from e663eeb8a0c426607cf29ebd39a5ce7546ecc494 (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 4236fc4ad0d80b80bbdf1e013976f0bbe85fcf16
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Jun 25 11:17:39 2015 -0400
Ticket #36913 Correct config file and automate post install tasks
diff --git a/debian/freeside-torrus.postinst b/debian/freeside-torrus.postinst
new file mode 100644
index 0000000..4cc5487
--- /dev/null
+++ b/debian/freeside-torrus.postinst
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+chown freeside.freeside /var/log/torrus
+mkdir /srv/torrus/; mkdir /srv/torrus/collector_rrd
+chown -R freeside:freeside /srv/torrus/collector_rrd /usr/local/etc/torrus/discovery /usr/local/etc/torrus/xmlconfig/
+torrus clearcache
diff --git a/debian/rules b/debian/rules
index 45f2ce8..3181fe8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -227,8 +227,8 @@ install-stamp: build-stamp
# Torrus
- install -d ${TMP}-torrus$(APACHE_DOCUMENT_ROOT)/
- install -o root -m 755 htetc/freeside-torrus.conf ${TMP}-torrus$(APACHE_DOCUMENT_ROOT)/
+ install -d ${TMP}-torrus${APACHE_CONF}
+ install -o root -m 755 htetc/freeside-torrus.conf ${TMP}-torrus$(APACHE_CONF)/
( cd torrus; \
torrus_user=freeside var_user=freeside var_group=freeside ./configure; \
-----------------------------------------------------------------------
Summary of changes:
debian/freeside-torrus.postinst | 6 ++++++
debian/rules | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 debian/freeside-torrus.postinst
More information about the freeside-commits
mailing list