commit 5a6853751f69ebf771d2126200780f6c4899fb7b Author: Bruno BELANYI Date: Sat Mar 6 16:19:08 2021 +0000 scripts: add media permission fixer diff --git a/media-perms.sh b/media-perms.sh new file mode 100755 index 0000000..1ec6e24 --- /dev/null +++ b/media-perms.sh @@ -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" {} +