File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 7676# ###################################################
7777
7878# # create php ini file with comment
79- echo " ; ${PHP_INI_FILE_NAME} create by entrypoint.sh in container image" > /usr/local/etc/php/conf.d/${PHP_INI_FILE_NAME}
79+ if [ " $( id -u) " -eq 0 ]; then
80+ echo " ; ${PHP_INI_FILE_NAME} create by entrypoint.sh in container image" > /usr/local/etc/php/conf.d/${PHP_INI_FILE_NAME}
81+ fi
8082
8183# # set TimeZone
8284if [ -n " $TZ " ]; then
480482
481483# ###################################################
482484
485+ if [ " $( id -u) " -eq 0 ]; then
486+ [ -d " /entrypoint.d/" ] || mkdir /entrypoint.d/
487+ fi
488+
483489# # more entrypoint-files
484490find " /entrypoint.d/" -follow -type f -print | sort -n | while read -r f; do
485491 case " $f " in
You can’t perform that action at this time.
0 commit comments