summaryrefslogtreecommitdiff
path: root/debian/freeside-torrus.postinst
blob: d39677ee6a5a67061225e2b7e1c3d7b581e4f57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

chown freeside.freeside /var/log/torrus
chown -R freeside.freeside /var/torrus

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