feat: add files to setgid on folders inside user public repos

This commit is contained in:
Pallav Vasa
2025-05-21 10:45:23 +00:00
parent 3396a4360a
commit 0b3473b9c4
2 changed files with 18 additions and 0 deletions

6
setgit-watcher.sh Normal file
View File

@ -0,0 +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
chmod g+s "$newdir"
done