Files
docker-guacamole/root/etc/cont-init.d/40-postgres.sh
T
2018-03-08 21:08:18 +11:00

12 lines
252 B
Bash

#!/usr/bin/with-contenv sh
mkdir -p /config/postgres
chown -R 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