Merge "labs: make TOP_DIR more robust with blanks in path"
This commit is contained in:
commit
d25fb68db4
@ -6,7 +6,7 @@ set -o nounset
|
|||||||
# Kill entire process group
|
# Kill entire process group
|
||||||
trap 'kill -- -$$' SIGINT
|
trap 'kill -- -$$' SIGINT
|
||||||
|
|
||||||
TOP_DIR=$(cd $(dirname "$0") && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
|
|
||||||
: ${DISTRO:=ubuntu-14.04-server-amd64}
|
: ${DISTRO:=ubuntu-14.04-server-amd64}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ set -o errexit -o nounset
|
|||||||
# Remove files that called us (written by {ks,preseed}.cfg)
|
# Remove files that called us (written by {ks,preseed}.cfg)
|
||||||
rm -f /etc/init.d/osbash /etc/rc2.d/S40osbash
|
rm -f /etc/init.d/osbash /etc/rc2.d/S40osbash
|
||||||
|
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
# source_deploy doesn't work here
|
# source_deploy doesn't work here
|
||||||
source "$CONFIG_DIR/deploy.osbash"
|
source "$CONFIG_DIR/deploy.osbash"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ set -o errexit -o nounset
|
|||||||
# This script installs the insecure osbash ssh keys. This allows users to
|
# This script installs the insecure osbash ssh keys. This allows users to
|
||||||
# log into the VMs using these keys instead of a password.
|
# log into the VMs using these keys instead of a password.
|
||||||
|
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ set -o errexit -o nounset
|
|||||||
# This scripts configures hostname and networking for all nodes. The filename
|
# This scripts configures hostname and networking for all nodes. The filename
|
||||||
# determines the node name.
|
# determines the node name.
|
||||||
|
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/openstack"
|
source "$CONFIG_DIR/openstack"
|
||||||
# Pick up VM_PROXY
|
# Pick up VM_PROXY
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/openstack"
|
source "$CONFIG_DIR/openstack"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/openstack"
|
source "$CONFIG_DIR/openstack"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$CONFIG_DIR/openstack"
|
source "$CONFIG_DIR/openstack"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
exec_logfile
|
exec_logfile
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
# Get REGION
|
# Get REGION
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/credentials"
|
source "$CONFIG_DIR/credentials"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/openstack"
|
source "$CONFIG_DIR/openstack"
|
||||||
# Pick up VM_PROXY
|
# Pick up VM_PROXY
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$CONFIG_DIR/openstack"
|
source "$CONFIG_DIR/openstack"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o errexit -o nounset
|
set -o errexit -o nounset
|
||||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
source "$TOP_DIR/config/paths"
|
source "$TOP_DIR/config/paths"
|
||||||
source "$LIB_DIR/functions.guest"
|
source "$LIB_DIR/functions.guest"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user