docker: test if _build directory exists before chown
This commit is contained in:
parent
ce2b0e546d
commit
c33e2da44e
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,8 @@ if ! grep -q "^[^:]*:[^:]*:$EXT_UID:" /etc/passwd ; then
|
|||
useradd -r -u "$EXT_UID" -g appuser appuser
|
||||
fi
|
||||
|
||||
chown -R "$EXT_UID:$EXT_GID" _build
|
||||
if [ -d "_build" ]; then
|
||||
chown -R "$EXT_UID:$EXT_GID" _build
|
||||
fi
|
||||
|
||||
exec gosu "$EXT_UID:$EXT_GID" make "$@"
|
||||
|
|
Loading…
Reference in a new issue