Skip to content

Commit

Permalink
Set UMASK for ASH in Entrypoint
Browse files Browse the repository at this point in the history
Otherwise it seems to use the original system UMASK, even if changed. ASH is odd.
  • Loading branch information
biodrone committed Nov 18, 2019
1 parent 1f11785 commit 11fa919
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

DEFAULT_UID=1000
DEFAULT_GID=1000
DEFAULT_UMASK=022

usermod goautoyt -u ${PUID:-${DEFAULT_UID}}
groupmod goautoyt -g ${PGID:-${DEFAULT_GID}}

chown -R goautoyt:goautoyt /app
exec su -s /bin/ash -c "PATH=$PATH:/usr/local/bin;./main" goautoyt
exec su -s /bin/ash -c "umask ${UMASK_SET:-${DEFAULT_UMASK}};PATH=$PATH:/usr/local/bin;./main" goautoyt

0 comments on commit 11fa919

Please sign in to comment.