Merge branch 'master' of git.curoverse.com:arvados into 3408-production-datamanager
[arvados.git] / docker / workbench / apache2_foreground.sh
1 #! /bin/bash
2
3 read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat
4 trap "kill -TERM -$pgrp; exit" EXIT TERM KILL SIGKILL SIGTERM SIGQUIT
5
6 # Override the default API server address if necessary.
7 if [[ "$API_PORT_443_TCP_ADDR" != "" ]]; then
8   sed -i "s/localhost:9900/$API_PORT_443_TCP_ADDR/" /usr/src/arvados/apps/workbench/config/application.yml
9 fi
10
11 source /etc/apache2/envvars
12 /usr/sbin/apache2 -D FOREGROUND