7 lines
171 B
Bash
7 lines
171 B
Bash
![]() |
#!/bin/bash
|
||
|
WATCH_DIR="/mnt/private/workspaces-data/public"
|
||
|
|
||
|
inotifywait -m -r -e mkdir --format '%w%f' "$WATCH_DIR" | while read -r newdir; do
|
||
|
chmod g+s "$newdir"
|
||
|
done
|