irongit

bout as good as it gets

huncholanehuncholaneauthored
parent 741ff06commit 7b081be2d4c27ff2a1b349530bea326948378652Browse files

1 file changed, +2 -1

+2-1docker-entrypoint.sh
@@ -1,14 +1,15 @@
11 #!/bin/sh
2+echo "Beginning of huncho web entrypoint."
23
34 if [ ! -d /var/lib/postgresql/data ];then
45 mkdir /var/lib/postgresql/data
56 fi
67
7-# take care of postgres business
88 chmod 700 /var/lib/postgresql/data
99 chown -R postgres:postgres /var/lib/postgresql/data
1010 su -s /bin/sh postgres <<EOF
1111 cd
12+echo "Switched to postgres user"
1213 if [ -z $(ls /var/lib/postgresql/data) ];then
1314 echo 'No data found, initializing postgres.'
1415 initdb -D data > /dev/null > /dev/null 2>&1