forked from xdocker/xgeoserver

Tim Sutton
2014-10-12 4b8c73d3e1cc23701e9b0d4808f180c47348714a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
 
# Put any tasks you would like to have carried
# out when the container is first created here
 
# Set the root passwd - grep docker logs for it
ROOT_PASSWORD=`pwgen -c -n -1 12`
echo "root:$ROOT_PASSWORD" | chpasswd
echo "root login password: $ROOT_PASSWORD"
 
# Also echo out the pg password written to
# /PGPASSWORD.txt when the image was made
# by start-postgres.sh
 
# Launch supervisor
supervisord -n