Skip to content

Commit a7abd95

Browse files
committed
Update entrypoint.sh
DOCUMENT_ROOT
1 parent 9f086fb commit a7abd95

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ set -eu
2121
: "${ENABLE_PHP_FPM_STATUS:="0"}" # set 1 to enable
2222
: "${CREATE_PHPINFO_FILE:="0"}" # set 1 to enable
2323
: "${CREATE_INDEX_FILE:="0"}" # set 1 to enable
24+
: "${DOCUMENT_ROOT:=""}" # when unset it use default: /var/www/html
2425
: "${ENABLE_APACHE_REWRITE:="0"}" # set 1 to enable
2526
: "${ENABLE_APACHE_ACTIONS:="0"}" # set 1 to enable
2627
: "${ENABLE_APACHE_SSL:="0"}" # set 1 to enable
@@ -32,11 +33,11 @@ set -eu
3233
: "${APACHE_SERVER_NAME:=""}" # set server name, example: example.com
3334
: "${APACHE_SERVER_ALIAS:=""}" # set server name, example: 'www.example.com *.example.com'
3435
: "${APACHE_SERVER_ADMIN:=""}" # set server admin, example: admin@example.com
35-
: "${APACHE_DOCUMENT_ROOT:=""}" # when unset it use default: /var/www/html
36+
: "${APACHE_DOCUMENT_ROOT:="$DOCUMENT_ROOT"}" # when unset it use default: /var/www/html
3637
: "${DISABLE_APACHE_DEFAULTSITES:="0"}" # set 1 to disable default sites (add or mount your own conf in /etc/apache2/sites-enabled)
3738
: "${ENABLE_NGINX_REMOTEIP:="0"}" # set 1 to enable (use this only behind a proxy/loadbalancer)
3839
: "${ENABLE_NGINX_STATUS:="0"}" # set 1 to enable
39-
: "${NGINX_DOCUMENT_ROOT:=""}" # when unset it use default: /var/www/html
40+
: "${NGINX_DOCUMENT_ROOT:="$DOCUMENT_ROOT"}" # when unset it use default: /var/www/html
4041

4142
PHP_INI_FILE_NAME="50-php.ini"
4243
lsb_dist="$(. /etc/os-release && echo "$ID")" # get os (example: debian or alpine) - do not change!

0 commit comments

Comments
 (0)