root/install.sh

Revision 5, 332 bytes (checked in by bp, 3 years ago)

changes n2rrd.conf to dist-n2rrd.conf --bp

  • Property svn:executable set to
Line 
1 #!/bin/sh
2
3 BIN_DIR=/usr/local/bin
4 CONF_DIR=/etc/n2rrd
5 PERL=`which perl`
6
7 sed -e "s|@BIN_PERL@|$PERL|" n2rrd.pl > n2rrd.pl.tmp
8
9 install -v -d $CONF_DIR
10 install -v -d $BIN_DIR
11 install -v -m 644 dist-n2rrd.conf $CONF_DIR/dist-n2rrd.conf
12
13 cp -r templates $CONF_DIR
14
15 install -v -m 755 n2rrd.pl.tmp $BIN_DIR/n2rrd.pl
16
17 rm -f n2rrd.pl.tmp
18
Note: See TracBrowser for help on using the browser.