Skip to content

Commit

Permalink
fix usermod command exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchol committed Jul 28, 2018
1 parent 288c327 commit cd43b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/image-files/usr/local/bin/docker-php-entrypoint
Expand Up @@ -2,7 +2,7 @@
set -e

# Set permissions based on ENV variable (debian only)
if [ -x "usermod" ] ; then
if [ -x "$(command -v usermod)" ] ; then
usermod -u ${PHP_USER_ID} www-data
fi

Expand Down

0 comments on commit cd43b0d

Please sign in to comment.