[projects/distfiles] g+r on all uploaded files using inotifywait
mmazur
mmazur at pld-linux.org
Thu Jan 30 22:47:30 CET 2014
commit 62ee05b8c05f1baefb0c8abe23166693f82cb1b0
Author: Mariusz Mazur <mmazur at pld-linux.org>
Date: Thu Jan 30 22:47:06 2014 +0100
g+r on all uploaded files using inotifywait
chmodd.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/chmodd.sh b/chmodd.sh
new file mode 100755
index 0000000..9c176fe
--- /dev/null
+++ b/chmodd.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+dir=/var/lib/dropin/dropin
+
+inotifywait -d -m -q "$dir" --format '%f' -e create |
+while read file
+do
+ chmod g+r "$dir/$file"
+done
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/distfiles.git/commitdiff/62ee05b8c05f1baefb0c8abe23166693f82cb1b0
More information about the pld-cvs-commit
mailing list