summaryrefslogtreecommitdiffstats
path: root/abs/extra/monitorix/monitorix.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2010-09-05 06:13:57 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2010-09-05 06:13:57 (GMT)
commitb172f79fadb565ecfbcec9508f9377d8618a4f4c (patch)
treebf8823b07e3313c3afa000a9b31e4f9a735cb818 /abs/extra/monitorix/monitorix.install
parentf9d54ab7c3853208484e304bc6cf40ab0f79d400 (diff)
parent5e7027c6194237ca1dc5fcbb3648483a970fb500 (diff)
downloadlinhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.zip
linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.gz
linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.bz2
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/extra/monitorix/monitorix.install')
-rw-r--r--abs/extra/monitorix/monitorix.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/extra/monitorix/monitorix.install b/abs/extra/monitorix/monitorix.install
new file mode 100644
index 0000000..6c1d1bd
--- /dev/null
+++ b/abs/extra/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
+}