~ubuntu-branches/ubuntu/natty/eucalyptus/natty-201103250208

« back to all changes in this revision

Viewing changes to debian/eucalyptus-java-common.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2010-09-13 13:46:18 UTC
  • Revision ID: james.westby@ubuntu.com-20100913134618-uum51g0wo9b78nio
Tags: 2.0+bzr1239-0ubuntu2
* debian/eucalyptus-java-common.preinst: Move the cloud.d/scripts symlink 
  to the backup location on upgrade from 10.04/Lucid. (LP: #636687)
* debian/control: Build-Depend on libavahi-* >= 0.6.27-2ubuntu2, as the
  earlier version dropped udeb shlibs. (LP: #636101)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
                        rm -f /var/backups/eucalyptus/UPGRADE_IN_PROGRESS.eucalyptus-java-common
14
14
                        ln -sf "$backup" /var/backups/eucalyptus/UPGRADE_IN_PROGRESS.eucalyptus-java-common
15
15
                        [ -d /var/lib/eucalyptus/db/ ] && cp -a /var/lib/eucalyptus/db/ "$backup/var/lib/eucalyptus/"
16
 
                        # Must move the cloud.d scripts out of the way
17
 
                        [ -d /etc/eucalyptus/cloud.d/scripts/ ] && mv -f /etc/eucalyptus/cloud.d/scripts/ "$backup/etc/eucalyptus/cloud.d/"
 
16
                        # Must move the cloud.d scripts symlink out of the way, could equally rm. (LP: #538546)
 
17
                        [ -d /etc/eucalyptus/cloud.d/scripts/ ] && mv -f /etc/eucalyptus/cloud.d/scripts "$backup/etc/eucalyptus/cloud.d/"
18
18
                        # We know we're upgrading from Lucid; hardcode the backup old version to "1.6.2"
19
19
                        # because that's what the euca_upgrade is hardcoded to expect :-/
20
20
                        echo "1.6.2" > "$backup/etc/eucalyptus/eucalyptus-version"