Skip to content

Commit 9ca2767

Browse files
committed
Fix Apache environment variable errors by exporting variables in entrypoint
1 parent 23d9df3 commit 9ca2767

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docker-entrypoint.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ set -eu
77
# | -- VARS -- | #
88
# + ---------- + #
99

10-
SERVER_ADMIN="${SERVER_ADMIN:-you@example.com}"
11-
HTTP_SERVER_NAME="${HTTP_SERVER_NAME:-localhost}"
12-
HTTPS_SERVER_NAME="${HTTPS_SERVER_NAME:-localhost}"
13-
LOG_LEVEL="${LOG_LEVEL:-info}"
14-
TZ="${TZ:-UTC}"
15-
PHP_MEMORY_LIMIT="${PHP_MEMORY_LIMIT:-256M}"
16-
UPLOAD_MAX_FILESIZE="${UPLOAD_MAX_FILESIZE:-8M}"
10+
export SERVER_ADMIN="${SERVER_ADMIN:-you@example.com}"
11+
export HTTP_SERVER_NAME="${HTTP_SERVER_NAME:-localhost}"
12+
export HTTPS_SERVER_NAME="${HTTPS_SERVER_NAME:-localhost}"
13+
export LOG_LEVEL="${LOG_LEVEL:-info}"
14+
export TZ="${TZ:-UTC}"
15+
export PHP_MEMORY_LIMIT="${PHP_MEMORY_LIMIT:-256M}"
16+
export UPLOAD_MAX_FILESIZE="${UPLOAD_MAX_FILESIZE:-8M}"
1717

1818
# Read Current LLC Version
1919
# When version.json has CR/LF, it fx up, so have to add tr to remove the line endings.
@@ -59,4 +59,4 @@ echo '| Running Apache |'
5959
echo '+ ------------------------------------------------------------------ +'
6060
echo
6161

62-
httpd -D FOREGROUND
62+
httpd -D FOREGROUND

0 commit comments

Comments
 (0)