Skip to content

Commit

Permalink
Improve performance of fix-permissions script (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterisr committed Aug 23, 2022
1 parent 1784ef4 commit 83a5335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base-notebook/fix-permissions
Expand Up @@ -23,13 +23,13 @@ for d in "$@"; do
-group "${NB_GID}" \
-a -perm -g+rwX \
\) \
-exec chgrp "${NB_GID}" {} \; \
-exec chmod g+rwX {} \;
-exec chgrp "${NB_GID}" -- {} \+ \
-exec chmod g+rwX -- {} \+
# setuid, setgid *on directories only*
find "${d}" \
\( \
-type d \
-a ! -perm -6000 \
\) \
-exec chmod +6000 {} \;
-exec chmod +6000 -- {} \+
done

0 comments on commit 83a5335

Please sign in to comment.