diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-12-03 03:22:02 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-12-03 03:22:02 (GMT) |
commit | 23e92a9bcefb4b5f7a0b84920986830dafeaf0c2 (patch) | |
tree | 04924433c8622ad5bd04c9c085f1f42ef297a7a6 /abs/extra/monitorix/readme.install | |
parent | eda157f81c5147ed610263fecece005d92ea3f1a (diff) | |
download | linhes_pkgbuild-23e92a9bcefb4b5f7a0b84920986830dafeaf0c2.zip linhes_pkgbuild-23e92a9bcefb4b5f7a0b84920986830dafeaf0c2.tar.gz linhes_pkgbuild-23e92a9bcefb4b5f7a0b84920986830dafeaf0c2.tar.bz2 |
monitorix: upgrade
Diffstat (limited to 'abs/extra/monitorix/readme.install')
-rw-r--r-- | abs/extra/monitorix/readme.install | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/abs/extra/monitorix/readme.install b/abs/extra/monitorix/readme.install new file mode 100644 index 0000000..2630018 --- /dev/null +++ b/abs/extra/monitorix/readme.install @@ -0,0 +1,54 @@ +post_install() { + echo '----------------------------------------------------------------------' + echo 'NOTE that you will need a mono-font for this package to work.' + echo 'There are many options here so I did not add one as a formal dep.' + echo 'You may use for example terminus-font. If your graphs have no numbers' + echo 'go ahead and install it. If they work as is you do not need it.' + echo ' ' + echo 'Consider having your rrd databases for monitorix reside in RAM.' + echo 'D/L and build the monitorix-tmpfs package from the AUR:' + echo + echo ' http://aur.archlinux.org/packages.php?ID=34134' + echo '----------------------------------------------------------------------' +} + +post_remove() { + 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() { +NEW=`echo $1 | cut -f-1 -d '-'` +OLD=`echo $2 | cut -f-1 -d '-'` + +# if running the 1.4.2 series then display warning message + +if [ "$OLD" = "1.4.2" ]; then + echo '----------------------------------------------------------------------' + echo ' WARNING:' + echo + echo 'With this upgrade you MUST replace your current version of' + echo '/etc/monitorix.conf with /etc/monitorix.conf.pacnew which contains new' + echo 'configs needed by the 1.5.0 release of monitorix.' + echo + echo 'Simply do the following:' + echo '# cp /etc/monitorix.conf /etc/monitorix.conf.old' + echo '# mv /etc/monitorix.conf.pacnew /etc/monitorix.conf' + echo + echo 'Now you can compare your old config saved as /etc/monitorix.conf.old' + echo 'to your new config to ensure that you get all your config options into' + echo 'the new version.' + echo + echo 'Restart monitorix when you have completed the edit as well:' + echo '# /etc/rc.d/monitorix restart' + echo '----------------------------------------------------------------------' +fi +} |