Skip to content

Commit

Permalink
Update apache docroot
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 14, 2024
1 parent e2cd0a3 commit c700d49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runner/main/modules/docker-php/docker-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ 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}" apachectl graceful

# Ensure that the whole .composer directory is writable to all (www-data needs to write there).
docker exec "${WEBSERVER}" chmod -R go+rw /var/www/.composer

Expand Down

0 comments on commit c700d49

Please sign in to comment.