Ticket #36913 Correct config file and automate post install tasks
authorJeremy Davis <jeremyd@freeside.biz>
Thu, 25 Jun 2015 15:15:47 +0000 (11:15 -0400)
committerJeremy Davis <jeremyd@freeside.biz>
Thu, 25 Jun 2015 15:15:47 +0000 (11:15 -0400)
debian/freeside-torrus.postinst [new file with mode: 0644]
debian/rules

diff --git a/debian/freeside-torrus.postinst b/debian/freeside-torrus.postinst
new file mode 100644 (file)
index 0000000..4cc5487
--- /dev/null
@@ -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
index 45f2ce8..3181fe8 100755 (executable)
@@ -227,8 +227,8 @@ install-stamp: build-stamp
 
        # Torrus 
        
 
        # 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; \
 
        ( cd torrus; \
        torrus_user=freeside var_user=freeside var_group=freeside ./configure; \