scripts: add media permission fixer
This commit is contained in:
commit
5a6853751f
9
media-perms.sh
Executable file
9
media-perms.sh
Executable 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" {} +
|
Loading…
Reference in a new issue