Skip to content

Commit

Permalink
Fix #224. Make sure we chown our var dir too.
Browse files Browse the repository at this point in the history
  • Loading branch information
envygeeks committed Jul 7, 2018
1 parent 70daad4 commit e96998e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion opts.yml
Expand Up @@ -11,4 +11,4 @@ tags:
pages: pages
releases:
tag:
pages: 3.7.3 # 06/05/2018
pages: 3.7.3 # 07/07/2018
12 changes: 5 additions & 7 deletions repos/jekyll/copy/all/usr/jekyll/bin/entrypoint
Expand Up @@ -20,14 +20,12 @@ export JEKYLL_GID
if [ "$JEKYLL_UID" != "0" ] && [ "$JEKYLL_UID" != "$(id -u jekyll)" ]; then
usermod -u $JEKYLL_UID jekyll
groupmod -g $JEKYLL_GID jekyll
chown_args=""

if [ "$FULL_CHOWN" ]; then
chown -R jekyll:jekyll \
$JEKYLL_DATA_DIR
else
chown jekyll:jekyll \
$JEKYLL_DATA_DIR
fi
[ "$FULL_CHOWN" ] && chown_args="-r"
for d in "$JEKYLL_DATA_DIR" "$JEKYLL_VAR_DIR"; do
chown $chown_args "$d"
done
fi

# --
Expand Down

0 comments on commit e96998e

Please sign in to comment.