fix some paths
This commit is contained in:
parent
e8fed48ead
commit
adbe9c1662
1 changed files with 6 additions and 6 deletions
12
build_lxc.sh
12
build_lxc.sh
|
@ -169,8 +169,8 @@ fi
|
||||||
echo "export PS1='${debian_chroot:+($debian_chroot)}\\u@\\H:\\w\\$ '" >> $ROOTFS/$DEST/.bashrc
|
echo "export PS1='${debian_chroot:+($debian_chroot)}\\u@\\H:\\w\\$ '" >> $ROOTFS/$DEST/.bashrc
|
||||||
echo "export PS1='${debian_chroot:+($debian_chroot)}\\u@\\H:\\w\\$ '" >> $ROOTFS/etc/profile
|
echo "export PS1='${debian_chroot:+($debian_chroot)}\\u@\\H:\\w\\$ '" >> $ROOTFS/etc/profile
|
||||||
|
|
||||||
# Give stack ownership over /$DEST so it may do the work needed
|
# Give stack ownership over $DEST so it may do the work needed
|
||||||
chroot $ROOTFS chown -R stack /$DEST
|
chroot $ROOTFS chown -R stack $DEST
|
||||||
|
|
||||||
# Configure instance network
|
# Configure instance network
|
||||||
INTERFACES=$ROOTFS/etc/network/interfaces
|
INTERFACES=$ROOTFS/etc/network/interfaces
|
||||||
|
@ -199,10 +199,10 @@ killall screen
|
||||||
# Install and run stack.sh
|
# Install and run stack.sh
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y --force-yes install git-core vim-nox sudo
|
sudo apt-get -y --force-yes install git-core vim-nox sudo
|
||||||
if [ ! -d "/$DEST/devstack" ]; then
|
if [ ! -d "$DEST/devstack" ]; then
|
||||||
git clone git://github.com/cloudbuilders/devstack.git /$DEST/devstack
|
git clone git://github.com/cloudbuilders/devstack.git $DEST/devstack
|
||||||
fi
|
fi
|
||||||
cd /$DEST/devstack && $STACKSH_PARAMS ./stack.sh > /$DEST/run.sh.log
|
cd $DEST/devstack && $STACKSH_PARAMS ./stack.sh > /$DEST/run.sh.log
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Make the run.sh executable
|
# Make the run.sh executable
|
||||||
|
@ -212,7 +212,7 @@ chmod 755 $RUN_SH
|
||||||
RC_LOCAL=$ROOTFS/etc/rc.local
|
RC_LOCAL=$ROOTFS/etc/rc.local
|
||||||
cat > $RC_LOCAL <<EOF
|
cat > $RC_LOCAL <<EOF
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
su -c "/$DEST/run.sh" stack
|
su -c "$DEST/run.sh" stack
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Configure cgroup directory
|
# Configure cgroup directory
|
||||||
|
|
Loading…
Reference in a new issue