Skip to content

Commit 5f4ae10

Browse files
committed
chown should be to stack user, not root
1 parent ab6105c commit 5f4ae10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if [[ $EUID -eq 0 ]]; then
121121
echo "Copying files to stack user"
122122
STACK_DIR="$DEST/${PWD##*/}"
123123
cp -r -f "$PWD" "$STACK_DIR"
124-
chown -R $USER "$STACK_DIR"
124+
chown -R stack "$STACK_DIR"
125125
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then
126126
exec su -c "set -e; cd $STACK_DIR; bash stack.sh; bash" stack
127127
else

0 commit comments

Comments
 (0)