From 84064daed3ed147911503575f453d06a0feb4112 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Mon, 26 Sep 2011 16:19:50 -0700 Subject: [PATCH] use explicit CWD when compying devstack --- build_lxc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_lxc.sh b/build_lxc.sh index 674742c..b97f8db 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -10,6 +10,9 @@ fi # Source params source ./stackrc +# Store cwd +CWD=`pwd` + # Configurable params BRIDGE=${BRIDGE:-br0} CONTAINER=${CONTAINER:-STACK} @@ -105,7 +108,7 @@ git_clone $MUNIN_REPO $CACHEDIR/opt/openstack-munin $MUNIN_BRANCH # Use this version of devstack? if [ "$USE_CURRENT_DEVSTACK" = "1" ]; then rm -rf $CACHEDIR/opt/devstack - cp -pr . $CACHEDIR/opt/devstack + cp -pr $CWD $CACHEDIR/opt/devstack fi # Destroy the old container