chown should be to stack user, not root
This commit is contained in:
parent
ab6105ccf6
commit
5f4ae107ef
1 changed files with 1 additions and 1 deletions
2
stack.sh
2
stack.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue