chown should be to stack user, not root

This commit is contained in:
Jesse Andrews 2011-11-06 07:47:09 -08:00
parent ab6105ccf6
commit 5f4ae107ef

View file

@ -121,7 +121,7 @@ if [[ $EUID -eq 0 ]]; then
echo "Copying files to stack user"
STACK_DIR="$DEST/${PWD##*/}"
cp -r -f "$PWD" "$STACK_DIR"
chown -R $USER "$STACK_DIR"
chown -R stack "$STACK_DIR"
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then
exec su -c "set -e; cd $STACK_DIR; bash stack.sh; bash" stack
else