Erster commit

This commit is contained in:
2023-02-19 20:57:29 +01:00
commit f63fea00bb
17 changed files with 5177 additions and 0 deletions

View File

14
work/entrypoint.sh Executable file
View 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