Skip to content

Commit

Permalink
Add mkdir for vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
DonRichards authored Oct 16, 2024
1 parent a4f7da0 commit 76aa687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 76aa687

Please sign in to comment.