]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
g+r on all uploaded files using inotifywait
authorMariusz Mazur <mmazur@pld-linux.org>
Thu, 30 Jan 2014 21:47:06 +0000 (22:47 +0100)
committerMariusz Mazur <mmazur@pld-linux.org>
Thu, 30 Jan 2014 21:47:06 +0000 (22:47 +0100)
chmodd.sh [new file with mode: 0755]

diff --git a/chmodd.sh b/chmodd.sh
new file mode 100755 (executable)
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
+
This page took 0.145882 seconds and 4 git commands to generate.