summaryrefslogtreecommitdiffstats
path: root/abs/not_built/extra/monitorix/readme.install
blob: 26300183ecb06275f4eaa5740a6afeb21b482995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
}