~free.ekanayaka/landscape-client/lucid-1.5.4-0ubuntu0.10.04.0

« back to all changes in this revision

Viewing changes to debian/landscape-client.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-06-28 18:07:18 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100628180718-vytyqgbtkiirv5sb
Tags: 1.5.2.1-0ubuntu0.10.04.0
Filter duplicate network interfaces in get_active_interfaces (LP: #597000)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
case "$1" in
27
27
    configure)
28
28
 
29
 
        # Tell dbus to reload its configuration since we've installed a conf
30
 
        # to its system.d. We must do this before invoking landscape-config.
31
 
        invoke-rc.d dbus reload || true
32
 
 
33
29
        CONFIG_FILE=/etc/landscape/client.conf
34
30
        if [ ! -f $CONFIG_FILE ]; then
35
31
            # Create new configuration, with private mode
93
89
            rm $very_old_cron_job
94
90
        fi
95
91
 
 
92
        # Check if we're upgrading from a D-Bus version
 
93
        if ! [ -z $2 ]; then
 
94
            if dpkg --compare-versions $2 lt 1.5.1; then
 
95
                # Launch a proxy service that will forward requests over DBus
 
96
                # from the old package-changer to the new AMP-based broker. This
 
97
                # is a one-off only needed for the DBus->AMP upgrade
 
98
                start-stop-daemon -x /usr/bin/landscape-dbus-proxy -b -c landscape -u landscape -S
 
99
            fi
 
100
         fi
 
101
 
96
102
    ;;
97
103
 
98
104
    abort-upgrade|abort-remove|abort-deconfigure)