Files
docker-guacamole/root/etc/cont-init.d/40-postgres.sh
T
2017-09-02 00:09:42 +10:00

12 lines
249 B
Bash

#!/usr/bin/with-contenv sh
mkdir -p /config/postgres
chown postgres:postgres /config/postgres
chmod 0700 /config/postgres
if [ -e /config/postgres/postgresql.conf ]; then
echo "Database already configured"
else
s6-setuidgid postgres initdb
fi