postgresql/root/usr/libexec/fix-permissions
Pavel Raiskup 777c76868d initial commit
Starting from here (9.5 subtree):
2f9f70c98e
2017-04-19 14:16:45 +02:00

7 lines
264 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 "$1" -exec chown postgres {} \;
find "$1" -exec chgrp 0 {} \;
find "$1" -exec chmod g+rw {} \;
find "$1" -type d -exec chmod g+x {} +