From 76aa687ba2aeae6b90e7c2fb7156d83b78a925c7 Mon Sep 17 00:00:00 2001 From: Don Richards <2738244+DonRichards@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:12:07 -0400 Subject: [PATCH] Add mkdir for vendor --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b5d9c4e27..cddf2bb3b 100644 --- a/Makefile +++ b/Makefile @@ -326,6 +326,7 @@ set-codebase-owner: docker-compose exec -T drupal with-contenv bash -lc "find . -not -group 101 -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \;" ; \ # Check and fix vendor directory ownership and permissions \ echo " └─ Checking vendor directory permissions"; \ + docker-compose exec -T drupal with-contenv bash -lc "[ ! -d ./vendor ] && mkdir -p ./vendor" ; \ docker-compose exec -T drupal with-contenv bash -lc "[ ! -d ./vendor ] || find ./vendor -not -user $(shell id -u) -exec chown $(shell id -u):101 {} \;" ; \ docker-compose exec -T drupal with-contenv bash -lc "[ ! -d ./vendor ] || chmod -R 775 ./vendor" ; \ elif [ -d "codebase" ]; then \ @@ -334,6 +335,7 @@ set-codebase-owner: sudo find ./codebase -not -group 101 -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \; ; \ # Check and fix vendor directory ownership and permissions \ echo " └─ Checking vendor directory permissions"; \ + [ ! -d ./codebase/vendor ] || sudo mkdir -p ./codebase/vendor ; \ [ ! -d ./codebase/vendor ] || sudo find ./codebase/vendor -not -user $(shell id -u) -exec chown $(shell id -u):101 {} \; ; \ [ ! -d ./codebase/vendor ] || sudo chmod -R 775 ./codebase/vendor ; \ else \