diff options
author | James Meyer <james.meyer@operamail.com> | 2010-03-21 19:16:41 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-03-21 19:16:41 (GMT) |
commit | 896386ce11f9aa74bd596f4eb1458e9c01d4b681 (patch) | |
tree | fd9963b2e3a05a394cdeac005de335fad4426623 /abs/extra-testing/monitorix/monitorix.install | |
parent | ff392a0dfe8479d4807130fec213987a4e017ad0 (diff) | |
download | linhes_pkgbuild-896386ce11f9aa74bd596f4eb1458e9c01d4b681.zip linhes_pkgbuild-896386ce11f9aa74bd596f4eb1458e9c01d4b681.tar.gz linhes_pkgbuild-896386ce11f9aa74bd596f4eb1458e9c01d4b681.tar.bz2 |
monitorix: initial import:
used the pkgbuild as provided by graysky
changed .install file to reflect name of pkg
replace hostname in config file on install
closes 620
Diffstat (limited to 'abs/extra-testing/monitorix/monitorix.install')
-rw-r--r-- | abs/extra-testing/monitorix/monitorix.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/extra-testing/monitorix/monitorix.install b/abs/extra-testing/monitorix/monitorix.install new file mode 100644 index 0000000..d7fb1c4 --- /dev/null +++ b/abs/extra-testing/monitorix/monitorix.install @@ -0,0 +1,30 @@ +remove_notes() { + echo '----------------------------------------------------------------------' + echo 'To remove all traces of monitorix from your system, you must manually' + echo 'remove the following dir trees (doing so will delete your databases):' + echo + echo '/var/lib/monitorix' + echo '/srv/http/monitorix' + echo '----------------------------------------------------------------------' +} + +# $1: The new package version +# $2: The old package version +post_upgrade() { + echo '' + echo '' + echo 'now edit /etc/monitorix.conf' + echo ' our $HOSTNAME - your hostname.' + echo ' our $ENABLE_LMTEMP - switch this on if you wanna log your temps.' + echo ' our @HDDTEMP_LIST - If you system has more than one hdd, add it to the array.' + echo ' stats can be seen at http://$THIS_SYSTEMS_IP/monitorix/' + + echo '' + echo '' +} + +post_install(){ + . /etc/systemconfig + sed -i "s/^our \$HOSTNAME.*$/our \$HOSTNAME = \"${hostname}\"/" /etc/monitorix.conf| + post_upgrade +} |