Skip to content

Commit 7bcfdcd

Browse files
authored
Set permissions on WORKDIR recursively
Recursively setting the permissions should deal with docker-created input/output directories *inside* WORKDIR. If the "input/output" dirs do not exist when container is created, docker (through 'root') will do it, we have then to care about that.
1 parent 01f7a9c commit 7bcfdcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ USERNAME=$(config_user)
6666
# To simplify the permissions now, I'll give ownership.
6767
#TODO: give 'w/r/x' permissions instead of changing ownership;
6868
# this is important 'cause WORKDIR could already exist.
69-
chown ${USERNAME}: $WORKDIR && chmod u+w $WORKDIR
69+
chown ${USERNAME}: $WORKDIR && chmod -R u+wrx $WORKDIR
7070

7171
echo ""
7272
echo "#==========================================#"

0 commit comments

Comments
 (0)