From 56e6292e1f6d11d5e2901262d30d9dcdf5d5f1ee Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Wed, 14 Sep 2011 02:54:27 -0700 Subject: [PATCH] run entire run script as stack user --- build_lxc.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/build_lxc.sh b/build_lxc.sh index 940fcae..88a7443 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -120,33 +120,33 @@ iface eth0 inet static EOF # Configure the runner -RUN_SH=$ROOTFS/root/run.sh +RUN_SH=$ROOTFS/opt/run.sh cat > $RUN_SH < /opt/run.sh.log +cd /opt/nfs-stack && $STACKSH_PARAMS ./stack.sh > /opt/run.sh.log EOF # Make the run.sh executable -chmod 700 $RUN_SH +chmod 755 $RUN_SH # Make runner launch on boot RC_LOCAL=$ROOTFS/etc/rc.local cat > $RC_LOCAL <