13 lines
227 B
Bash
13 lines
227 B
Bash
#!/bin/bash
|
|
|
|
chmod 0400 /cert.pem
|
|
chown postgres:postgres /cert.pem
|
|
|
|
chmod 0400 /key.pem
|
|
chown postgres:postgres /key.pem
|
|
|
|
chown -R postgres:postgres /var/lib/postgresql/data/
|
|
chmod -R 0700 /var/lib/postgresql/data/
|
|
|
|
exec "$@"
|