We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e1d8e5 commit bca991bCopy full SHA for bca991b
1 file changed
entrypoint.sh
@@ -76,7 +76,9 @@ fi
76
####################################################
77
78
## 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}
+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
82
83
## set TimeZone
84
if [ -n "$TZ" ]; then
@@ -480,6 +482,10 @@ fi
480
482
481
483
484
485
486
+ [ -d "/entrypoint.d/" ] || mkdir /entrypoint.d/
487
488
+
489
## more entrypoint-files
490
find "/entrypoint.d/" -follow -type f -print | sort -n | while read -r f; do
491
case "$f" in
0 commit comments