post_install() { . /etc/systemconfig if [ ! -f /home/xymon/server/ext/ignoreclient.py ] then echo "#this is a list of hosts to ignore" > /home/xymon/server/ext/ignoreclient.py echo ignorehosts=\"\'ignoreme1\',\'ignoreme2\'\" >> /home/xymon/server/ext/ignoreclient.py fi if [ ! -f /data/srv/httpd/htdocs/failed_func_hosts ] then touch /data/srv/httpd/htdocs/failed_func_hosts fi chown nobody:nobody /data/srv/httpd/htdocs/failed_func_hosts chmod 777 /data/srv/httpd/htdocs/failed_func_hosts sed -i -e "s/localhost/$hostname/" /home/xymon/server/etc/hosts.cfg #sed -i -e "s/\#/\# func/" /home/xymon/server/etc/hosts.cfg sed -i -e "s/localhost/$hostname/" /home/xymon/server/etc/xymonserver.cfg chown -R nobody /home/xymon chown -R nobody /data/srv/httpd/htdocs/xymon chown -R nobody /var/log/hobbit chown root /home/xymon/server/bin/xymonping chmod +s /home/xymon/server/bin/xymonping } post_upgrade() { post_install $1 } post_remove() { rm -f /data/srv/httpd/htdocs/xymon/index.html } pre_remove() { /bin/true } op=$1 shift $op $* # vim: ft=sh ts=2