~ubuntu-branches/ubuntu/karmic/vzctl/karmic

« back to all changes in this revision

Viewing changes to debian/vzctl.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2007-04-10 18:08:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070410180816-0uuzj9fnna7gmzxv
Tags: 3.0.16-4
Etch has been released which means that this version can be uploaded
to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        fi
25
25
        # No idea to start here as no virtual host can have been configured
26
26
        # yet. It may also break here.
 
27
 
 
28
        # Upgrade path for new vz cron file. To make nice upgrade from
 
29
        # etch version.
 
30
        export LANG=C
 
31
        if [ ! -e /etc/cron.d/vz ] && [ -e  /etc/vz/cron/vz ] ; then
 
32
            if [ -x /usr/sbin/invoke-rc.d ] ; then
 
33
                if invoke-rc.d vz status | grep "is running" > /dev/null ; then
 
34
                    cp /etc/vz/cron/vz /etc/cron.d/vz
 
35
                fi
 
36
            else
 
37
                if /etc/init.d/vz status | grep "is running" > /dev/null ; then
 
38
                    cp /etc/vz/cron/vz /etc/cron.d/vz
 
39
                fi
 
40
            fi
 
41
        fi
27
42
    ;;
28
43
 
29
44
    abort-upgrade|abort-remove|abort-deconfigure)