scripts/media-perms.sh

10 lines
161 B
Bash
Raw Normal View History

2021-03-06 17:19:08 +01:00
#!/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" {} +