simplifications - remove CLEAN option, remove unneccesary lxc code
diff --git a/build_lxc.sh b/build_lxc.sh
index 5e07b1a..1f33a33 100755
--- a/build_lxc.sh
+++ b/build_lxc.sh
@@ -64,12 +64,6 @@
# Copy over your ssh keys and env if desired
if [ "$COPYENV" = "1" ]; then
- cp -pr ~/.ssh $ROOTFS/root/.ssh
- cp -p ~/.ssh/id_rsa.pub $ROOTFS/root/.ssh/authorized_keys
- cp -pr ~/.gitconfig $ROOTFS/root/.gitconfig
- cp -pr ~/.vimrc $ROOTFS/root/.vimrc
- cp -pr ~/.bashrc $ROOTFS/root/.bashrc
-
cp -pr ~/.ssh $ROOTFS/opt/.ssh
cp -p ~/.ssh/id_rsa.pub $ROOTFS/opt/.ssh/authorized_keys
cp -pr ~/.gitconfig $ROOTFS/opt/.gitconfig
@@ -125,12 +119,3 @@
# Start our container
lxc-start -d -n $CONTAINER
-
-cat << EOF > /bin/remove_dead_cgroup.shecho
-"Removing dead cgroup .$CONTAINER." >> /var/log/cgroup
-rmdir /cgroup/$CONTAINER >> /var/log/cgroup 2>&1
-echo "return value was $?" >> /var/log/cgroup
-EOF
-chmod 755 /bin/remove_dead_cgroup.sh
-echo /bin/remove_dead_cgroup.sh > /cgroup/release_agent
-echo 1 > /cgroup/notify_on_release
diff --git a/stack.sh b/stack.sh
index 0fe84ad..c72a3af 100755
--- a/stack.sh
+++ b/stack.sh
@@ -26,13 +26,6 @@
DIR=`pwd`
DEST=/opt
-# Provide option to move aside any old code
-if [ "$CLEAN" = "1"]; then
- TMPDIR=/tmp/stackbak_`date +%s`
- mkdir $TMPDIR
- mv $DEST/* $TMPDIR
-fi
-
# Set the destination directories for openstack projects
NOVA_DIR=$DEST/nova
DASH_DIR=$DEST/dash