浏览代码

added fixperms script

Bachir Soussi Chiadmi 4 年之前
父节点
当前提交
e94774b849
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      fixperms.sh

+ 8 - 0
fixperms.sh

@@ -0,0 +1,8 @@
+#!/bin/sh
+chgrp www-data .
+chgrp -R www-data *
+sh -c "find . -type f | xargs chmod 664"
+sh -c "find ./bin -type f | xargs chmod 775"
+sh -c "find . -type d | xargs chmod 775"
+sh -c "find . -type d | xargs chmod +s"
+sh -c"umask 0002"