Browse Source

added fix perms script

Bachir Soussi Chiadmi 5 years ago
parent
commit
a8828f642f
1 changed files with 8 additions and 0 deletions
  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"