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 }