~ubuntu-branches/ubuntu/trusty/check-mk/trusty

« back to all changes in this revision

Viewing changes to debian/check-mk-config-icinga.postinst

  • Committer: Package Import Robot
  • Author(s): Alexander Wirt, Thomas Bechtold, Alexander Wirt
  • Date: 2013-09-13 08:00:52 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130913080052-xli3gmrs605rvsin
Tags: 1.2.2p2-1
[ Thomas Bechtold ]
* New upstream release (Closes: #678396).
* Update defaults in debian/defaults.nagios3 and debian/defaults.icinga.
* Update debian/patches/02_wato-sudoers.dpatch.
* debian/check-mk-server.install: Remove usr/share/check_mk/pnp-rraconf.
* debian/check-mk-config-nagios3.install: Adjust path for
  check_mk_templates.cfg.
* debian/check-mk-config-icinga.install: Adjust path for
  check_mk_templates.cfg.
* debian/check-mk-multisite.install: Remove no longer available
  etc/sudoers.d/check_mk_wato.
* [411c207] check-mk-server: Add debconf note about RRD update.
* [fd007c2] Handle apache 2.2 and apache2.4
* [9038096] debconf msg only when upgrading from < 1.2.0

[ Alexander Wirt ]
* [1abe7cc] Bump standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                #fix permissions for some directorys
40
40
                test -d /etc/icinga/objects/check_mk || mkdir -p /etc/icinga/objects/check_mk
41
41
                setperm root nagios 0775 /etc/icinga/objects/check_mk
 
42
 
 
43
                #handle the apache2.2 -> apache2.4 upgrade (see https://wiki.debian.org/Apache/PackagingFor24)
 
44
                CONF="check-mk-multisite"
 
45
                COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
 
46
 
 
47
                if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
 
48
                        . /usr/share/apache2/apache2-maintscript-helper
 
49
                        apache2_invoke enconf $CONF || exit $?
 
50
                elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
 
51
                        [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/$CONF.conf ] && ln -s ../conf-available/$CONF.conf /etc/apache2/conf.d/$CONF.conf
 
52
                fi
 
53
 
42
54
    ;;
43
55
  abort-upgrade|abort-remove|abort-deconfigure)
44
56
    ;;