Package icinga2-ido-mysql: Scripts

Post install

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
Pre uninstall

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