Erster commit
This commit is contained in:
0
work/CONTAINER_FIRST_STARTUP
Normal file
0
work/CONTAINER_FIRST_STARTUP
Normal file
14
work/entrypoint.sh
Executable file
14
work/entrypoint.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
CONTAINER_FIRST_STARTUP="CONTAINER_FIRST_STARTUP"
|
||||
|
||||
if [ ! -e /work/$CONTAINER_FIRST_STARTUP ]; then
|
||||
touch /work/$CONTAINER_FIRST_STARTUP
|
||||
su - postgres -c "initdb /var/lib/postgresql/data"
|
||||
su - postgres -c "pg_ctl start -D /var/lib/postgresql/data -l /var/lib/postgresql/log.log"
|
||||
su - postgres -c "psql --command \"create user kurs with superuser password 'HerrErbe';\""
|
||||
else
|
||||
su - postgres -c "pg_ctl start -D /var/lib/postgresql/data -l /var/lib/postgresql/log.log"
|
||||
fi
|
||||
|
||||
/usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf
|
Reference in New Issue
Block a user