From 40a37006f46abb0631f3b5b22df6dc50e5f16285 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 20 Sep 2011 18:06:14 +0000 Subject: [PATCH] add IF EXISTS to DROP DATABASE statememnts, make sure sudo is installed (prevents errors on miminal LXC installs), --- stack.sh | 58 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/stack.sh b/stack.sh index 3563d8a..c21e5ab 100755 --- a/stack.sh +++ b/stack.sh @@ -7,7 +7,7 @@ # put the list of *apt* and *pip* dependencies and other configuration files in # this repo. So start by grabbing this script and the dependencies. -# You can grab the most recent version of this script and files from Rackspace +# You can grab the most recent version of this script and files from Rackspace # Cloud Builders at https://github.com/cloudbuilders/devstack # Sanity Check @@ -23,9 +23,13 @@ if ! grep -q natty /etc/lsb-release; then fi fi -# stack.sh keeps the list of **apt** and **pip** dependencies in external +#The following makes fresh mininmal installs (i.e. LXCs) happy +apt-get update +apt-get install -y sudo + +# stack.sh keeps the list of **apt** and **pip** dependencies in external # files, along with config templates and other useful files. You can find these -# in the ``files`` directory (next to this script). We will reference this +# in the ``files`` directory (next to this script). We will reference this # directory using the ``FILES`` variable in this script. FILES=`pwd`/files if [ ! -d $FILES ]; then @@ -51,7 +55,7 @@ fi # first error that occured. set -o errexit -# Print the commands being run so that we can see the command that triggers +# Print the commands being run so that we can see the command that triggers # an error. It is also useful for following allowing as the install occurs. set -o xtrace @@ -91,7 +95,7 @@ FLAT_NETWORK_BRIDGE=${FLAT_NETWORK_BRIDGE:-br100} # ip or you risk breaking things. # FLAT_INTERFACE=eth0 -# Nova hypervisor configuration. We default to **kvm** but will drop back to +# Nova hypervisor configuration. We default to **kvm** but will drop back to # **qemu** if we are unable to load the kvm module. LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} @@ -113,7 +117,7 @@ GLANCE_HOSTPORT=${GLANCE_HOSTPORT:-$HOST_IP:9292} # # Openstack uses a fair number of other projects. -# Seed configuration with mysql password so that apt-get install doesn't +# Seed configuration with mysql password so that apt-get install doesn't # prompt us for a password upon install. cat <