mirror of
https://github.com/jwetzell/docker-guacamole.git
synced 2026-08-06 07:53:44 +00:00
13c80e6ae6
https://github.com/oznu/docker-guacamole/issues/11 Fixes this issue
14 lines
326 B
Bash
14 lines
326 B
Bash
#!/usr/bin/with-contenv sh
|
|
|
|
mkdir -p /config/postgres
|
|
mkdir -p /var/run/postgresql
|
|
chown postgres:postgres /var/run/postgresql
|
|
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
|