diff --git a/setgid-watcher.sh b/setgid-watcher.sh index b99acb1..a145e34 100644 --- a/setgid-watcher.sh +++ b/setgid-watcher.sh @@ -1,6 +1,6 @@ #!/bin/bash WATCH_DIR="/mnt/private/workspaces-data/public" -inotifywait -m -r -e mkdir --format '%w%f' "$WATCH_DIR" | while read -r newdir; do +inotifywait -m -r -e create --format '%w%f' "$WATCH_DIR" | while read -r newdir; do chmod g+s "$newdir" done