diff --git a/.deployer/scripts/deploy.sh b/.deployer/scripts/deploy.sh index 5f90171..512615b 100644 --- a/.deployer/scripts/deploy.sh +++ b/.deployer/scripts/deploy.sh @@ -41,11 +41,8 @@ set_group_writable_tree() { return fi - # chmod can only be performed by file owner (or root). During runtime some - # cache files may be owned by www-data, so normalize only deployer-owned - # entries and do not fail deployment if skipped files exist. - find "${path}" -type d -exec chmod 2775 {} + 2> /dev/null || true - find "${path}" -type f -exec chmod 664 {} + 2> /dev/null || true + find "${path}" -type d -exec chmod 2775 {} + + find "${path}" -type f -exec chmod 664 {} + } # ----