summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/monitorix/monitorix.install
blob: d7fb1c42ea2cf78be0889bf1f41ec30afad7f738 (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
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
}