From d2246b36c6753b240f3b9f47699542f659450247 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 14 Oct 2024 12:42:10 +0800 Subject: [PATCH] Add docs --- runner/main/modules/docker-php/docker-php.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/runner/main/modules/docker-php/docker-php.sh b/runner/main/modules/docker-php/docker-php.sh index 809a47b..0589c3e 100644 --- a/runner/main/modules/docker-php/docker-php.sh +++ b/runner/main/modules/docker-php/docker-php.sh @@ -58,6 +58,7 @@ function docker-php_setup() { -v "${SHAREDDIR}":/shared \ "${DOCKER_PHP}" + # Update the document root. docker exec "${WEBSERVER}" bash -c "sed -ri -e 's@/var/www/html@${APACHE_DOCUMENT_ROOT}@g' /etc/apache2/sites-available/*.conf" docker exec "${WEBSERVER}" bash -c "sed -ri -e 's@/var/www/@${APACHE_DOCUMENT_ROOT}@g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf" docker exec "${WEBSERVER}" apachectl graceful