scripts: add media permission fixer

This commit is contained in:
Bruno BELANYI 2021-03-06 16:19:08 +00:00
commit 5a6853751f

9
media-perms.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
DIR_PERM="0775"
FILE_PERM="0664"
chgrp media -R "$1"
find "$1" -type d -exec chmod "$DIR_PERM" {} +
find "$1" -type f -exec chmod "$FILE_PERM" {} +