]> git.rmz.io Git - dotfiles.git/blobdiff - bin/old/fix_mythtv_perm
cleaning up bin
[dotfiles.git] / bin / old / fix_mythtv_perm
diff --git a/bin/old/fix_mythtv_perm b/bin/old/fix_mythtv_perm
new file mode 100755 (executable)
index 0000000..a60c02a
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+DIR=/mnt/Skaro
+DIRS="Movies Music roms Documentaries Series Standup"
+
+for D in $DIRS; do
+    sudo chown -R ramsi:mythtv "$DIR/$D"
+    find "$DIR/$D" -type d -exec chmod 2755 {} +
+    find "$DIR/$D" -type f -exec chmod 0644 {} +
+done