~ubuntu-branches/ubuntu/lucid/eucalyptus/lucid-updates

« back to all changes in this revision

Viewing changes to debian/eucalyptus-common.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland, Dustin Kirkland, Scott Moser
  • Date: 2010-03-22 17:22:48 UTC
  • Revision ID: james.westby@ubuntu.com-20100322172248-necpo3nto3114zrw
Tags: 1.6.2-0ubuntu20
[ Dustin Kirkland ]
* Continue fixing karmic -> lucid upgrades, LP: #519513
* debian/eucalyptus-java-common.postinst: ensure that the db dir exists
  before running euca_upgrade
* debian/eucalyptus-common.preinst: ensure that the local conf exists
* tools/euca_upgrade:
  - on upgrade, migrate eucalyptus.conf settings to eucalyptus.local.conf
  - on upgrade, migrated $NODES to nodes.list
* clc/modules/msgs/conf/scripts/startup.groovy: change m1.small to 192M
  such that we can actually boot the lucid uec image, LP: #544292

[ Scott Moser ]
* debian/source_eucalyptus.py: fix AttributeError, LP: #520775

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
                        mkdir -p "$backup/var/lib/eucalyptus" "$backup/etc/eucalyptus"
13
13
                        rm -f /var/backups/eucalyptus/UPGRADE_IN_PROGRESS.eucalyptus-common
14
14
                        ln -sf "$backup" /var/backups/eucalyptus/UPGRADE_IN_PROGRESS.eucalyptus-common
15
 
                        [ -d /var/lib/eucalyptus/keys/ ] && mv -f /var/lib/eucalyptus/keys/ "$backup/var/lib/eucalyptus/"
 
15
                        [ -d /var/lib/eucalyptus/keys/ ] && cp -a /var/lib/eucalyptus/keys/ "$backup/var/lib/eucalyptus/"
16
16
                        cp -a /etc/eucalyptus/eucalyptus.conf "$backup/etc/eucalyptus/"
 
17
                        touch /etc/eucalyptus/eucalyptus.local.conf
17
18
                        # We know we're upgrading from Karmic; hardcode the backup old version to "1.6.1"
18
19
                        # because that's what the euca_upgrade is hardcoded to expect :-/
19
20
                        echo "1.6.1" > "$backup/etc/eucalyptus/eucalyptus-version"