对于我的Symfony应用程序,我使用ANT构建了一个部署脚本。在installation manual中,您可以看到您需要将权限设置为app/cache/
和app/logs
目录。所以我用命令行下面的办法:ANT设置ACL权限
sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
与setfacl
该方法不适合我(Mac OS)并与umask
第三个选项,工作是我没有选择。
所以我在想如何与ANT做到这一点,想出了:
<chmod perm="+a '_www allow delete,write,append,file_inherit,directory_inherit'">
<fileset dir="app/cache" />
<fileset dir="app/logs" />
</chmod>
的问题是它什么都不做。我甚至没有收到错误信息,也没有更改权限。对此有何建议?我无法使用类似perm="0775"
或perm="0777"
的解决方法,因为那时我无法使用ANT将其删除(仅适用于sudo ant
,但那不是我想要的)。 任何建议如何处理?