workspaces-pipelines/setgid-watcher.sh
2025-05-21 10:54:10 +00:00

7 lines
172 B
Bash

#!/bin/bash
WATCH_DIR="/mnt/private/workspaces-data/public"
inotifywait -m -r -e create --format '%w%f' "$WATCH_DIR" | while read -r newdir; do
chmod g+s "$newdir"
done