From 71d2d3839ef4763afccf45ce8bdca8678dc9a529 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Mon, 10 Mar 2025 14:31:45 +0100
Subject: [PATCH] gitlab-ci-cd/drupal#78 Add support to always install new site
 for testing

---
 test-and-deploy.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index ec5edb9..1b3379f 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -550,6 +550,10 @@ Debug:
   variables:
     GIT_STRATEGY: fetch
   script:
+    - docker compose exec -u root php chown -R www-data:www-data .
+    - docker compose exec -u root php chmod -R ug-w .
+    - docker compose exec -u root php bash -c 'chmod -R ug+w web/sites/*/files'
+    - docker compose exec -u root php bash -c 'chmod -R ug+w web/sites/*/private'
     - ${INITIAL_SETUP_COMMAND}
     - drush cr
   rules:
-- 
GitLab