Skip to content

Commit

Permalink
Amend docroot substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 14, 2024
1 parent c700d49 commit 27d4d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/main/modules/docker-php/docker-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function docker-php_setup() {
-v "${SHAREDDIR}":/shared \
"${DOCKER_PHP}"

docker exec "${WEBSERVER}" sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
docker exec "${WEBSERVER}" sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
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

# Ensure that the whole .composer directory is writable to all (www-data needs to write there).
Expand Down

0 comments on commit 27d4d50

Please sign in to comment.