Skip to content

Commit 04a3511

Browse files
author
Dean Troyer
committed
Source fixup_stuff...
...so it can pick up config variables from local.conf Change-Id: I0991f59881f16c72789e3b0342c26a2419ba0878
1 parent 5dd1778 commit 04a3511

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ if [[ "$OFFLINE" != "True" ]]; then
662662
fi
663663

664664
# Do the ugly hacks for broken packages and distros
665-
$TOP_DIR/tools/fixup_stuff.sh
665+
source $TOP_DIR/tools/fixup_stuff.sh
666666

667667

668668
# Extras Pre-install

tools/fixup_stuff.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,24 @@
2020
# - pre-install hgtools to work around a bug in RHEL6 distribute
2121
# - install nose 1.1 from EPEL
2222

23-
set -o errexit
24-
set -o xtrace
23+
# If TOP_DIR is set we're being sourced rather than running stand-alone
24+
# or in a sub-shell
25+
if [[ -z "$TOP_DIR" ]]; then
26+
set -o errexit
27+
set -o xtrace
2528

26-
# Keep track of the current directory
27-
TOOLS_DIR=$(cd $(dirname "$0") && pwd)
28-
TOP_DIR=$(cd $TOOLS_DIR/..; pwd)
29+
# Keep track of the current directory
30+
TOOLS_DIR=$(cd $(dirname "$0") && pwd)
31+
TOP_DIR=$(cd $TOOLS_DIR/..; pwd)
2932

30-
# Change dir to top of devstack
31-
cd $TOP_DIR
33+
# Change dir to top of devstack
34+
cd $TOP_DIR
3235

33-
# Import common functions
34-
source $TOP_DIR/functions
36+
# Import common functions
37+
source $TOP_DIR/functions
3538

36-
FILES=$TOP_DIR/files
39+
FILES=$TOP_DIR/files
40+
fi
3741

3842
# Keystone Port Reservation
3943
# -------------------------

0 commit comments

Comments
 (0)