diff --git a/recipe/deploy/writable.php b/recipe/deploy/writable.php index c90176a45..b591c1b08 100644 --- a/recipe/deploy/writable.php +++ b/recipe/deploy/writable.php @@ -99,8 +99,8 @@ $remoteUser = run('whoami'); } $httpUser = get('http_user'); - if (strpos(run("chmod 2>&1; true"), '+a') !== false) { - // Try OS-X specific setting of access-rights + if (run("uname -s") === 'Darwin') { + // macOS supports chmod +a for ACL management run("$sudo chmod +a \"$httpUser allow delete,write,append,file_inherit,directory_inherit\" $dirs"); run("$sudo chmod +a \"$remoteUser allow delete,write,append,file_inherit,directory_inherit\" $dirs");