~ubuntu-branches/ubuntu/raring/munin/raring

« back to all changes in this revision

Viewing changes to debian/munin.postinst

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-12-13 23:44:14 UTC
  • mfrom: (8.3.8 experimental)
  • Revision ID: package-import@ubuntu.com-20121213234414-4if30o2ljfvc37gs
Tags: 2.0.9-1ubuntu1
* Merge from Debian unstable (LP: #1089218). Remaining changes:
  - d/munin-node.upstart,munin.upstart: Add upstart configurations.
  - debian/patches/fix_ran_out_of_children.patch:
    + Fix occasional "Ran out of children: No child processes" error messages
      (LP: #1009357).

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        webserver=apache2
64
64
        webserver_init_script="/etc/init.d/$webserver"
65
65
        if [ -d /etc/$webserver/conf.d ] && [ ! -e /etc/$webserver/conf.d/munin ]; then
66
 
                if [ -z "$prevver" ] ; then
 
66
                if [ -z "$prevver" ] || ( dpkg --compare-versions $prevver ge 1.4.6-1~ && dpkg --compare-versions $prevver lt 1.4.7~ ) ; then
67
67
                        # only create link on new installs
 
68
                        # or when upgrading from a version where it was removed unconditionally
68
69
                        ln -s ../../munin/apache.conf /etc/$webserver/conf.d/munin
69
70
                fi
70
71
                if [ -f $webserver_init_script ];then