Skip to content

Commit

Permalink
removed the * for files
Browse files Browse the repository at this point in the history
  • Loading branch information
DonRichards authored Feb 23, 2023
1 parent ffcb018 commit a669407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ set-codebase-owner:
@echo "Setting codebase/ folder owner back to $(shell id -u):101"
if [ -n "$$(docker ps -q -f name=drupal)" ]; then \
echo " └─ Using docker-compose codebase/ directory"; \
docker-compose exec -T drupal with-contenv bash -lc "find . -not -user $(shell id -u) -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \;" ; \
docker-compose exec -T drupal with-contenv bash -lc "find . -not -group 101 -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \;" ; \
docker-compose exec -T drupal with-contenv bash -lc "find . -not -user $(shell id -u) -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \;" ; \
docker-compose exec -T drupal with-contenv bash -lc "find . -not -group 101 -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \;" ; \
elif [ -d "codebase" ]; then \
echo " └─ Using local codebase/ directory"; \
sudo find ./codebase -not -user $(shell id -u) -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \; ; \
sudo find ./codebase -not -group 101 -not -path '*/sites/default/files/*' -exec chown $(shell id -u):101 {} \; ; \
sudo find ./codebase -not -user $(shell id -u) -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \; ; \
sudo find ./codebase -not -group 101 -not -path '*/sites/default/files' -exec chown $(shell id -u):101 {} \; ; \
else \
echo " └─ No codebase/ directory found, skipping"; \
fi
Expand Down

0 comments on commit a669407

Please sign in to comment.