1 2 3 4 5
if [ $1 -eq 1 ] then # initial installation, enable ido-mysql feature ln -sf ../features-available/ido-mysql.conf /etc/icinga2/features-enabled/ido-mysql.conf fi
1 2 3 4
if [ $1 -eq 0 ]; then # deinstallation of the package -- remove ido-mysql feature rm -f /etc/icinga2/features-enabled/ido-mysql.conf fi