From b6730fa8d29c2111c6e4e1c16dd26147e32d4cff Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 11 Jun 2021 12:34:21 +0200 Subject: [PATCH] improved fixperms.sh --- fixperms.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fixperms.sh b/fixperms.sh index 38890c7..60cdff4 100755 --- a/fixperms.sh +++ b/fixperms.sh @@ -1,8 +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" +find . -type f -exec chmod 664 {} \; +find ./bin -type f -exec chmod 775 {} \; +find . -type d -exec chmod 775 {} \; +find . -type d -exec chmod +s {} \; +chmod +x fixperms.sh