mongodb/root/usr/libexec/fix-permissions
Marek Skalický 6d3fdf2066 Initial import.
2017-04-24 14:57:03 +02:00

6 lines
229 B
Bash
Executable file

#!/bin/sh
# Fix permissions on the given directory to allow group read/write of
# regular files and execute of directories.
find $@ -exec chown mongodb:0 {} \;
find $@ -exec chmod g+rw {} \;
find $@ -type d -exec chmod g+x {} +