first commit

This commit is contained in:
oznu
2017-09-02 00:09:42 +10:00
commit 32588ed555
9 changed files with 127 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/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