use explicit CWD when compying devstack
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 @@
# Source params
source ./stackrc
+# Store cwd
+CWD=`pwd`
+
# Configurable params
BRIDGE=${BRIDGE:-br0}
CONTAINER=${CONTAINER:-STACK}
@@ -105,7 +108,7 @@
# 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