diff options
author | Jeremy Davis <jeremyd@freeside.biz> | 2015-06-25 11:19:33 -0400 |
---|---|---|
committer | Jeremy Davis <jeremyd@freeside.biz> | 2015-06-25 11:19:33 -0400 |
commit | 4ca0be874312448d3fd8948b97f056e9689d1b28 (patch) | |
tree | d993b1d43fdcf0ec5aa443c78da5926ad177feca /debian | |
parent | 4b619ddc65ac8c256de2d99f63be46380ca0e8e0 (diff) |
Ticket #36913 Correct config file and automate post install tasks
Diffstat (limited to 'debian')
-rw-r--r-- | debian/freeside-torrus.postinst | 6 | ||||
-rwxr-xr-x | debian/rules | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/freeside-torrus.postinst b/debian/freeside-torrus.postinst new file mode 100644 index 000000000..4cc54872a --- /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 45f2ce8ed..3181fe882 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; \ |