4533: Move "database reset does not break basic operations" into its own test.
[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 # Start ssh daemon if requested via the ENABLE_SSH env variable
7 if [[ ! "$ENABLE_SSH" =~ (0|false|no|f|^$) ]]; then
8   /etc/init.d/ssh start
9 fi
10
11 # Override the default API server address if necessary.
12 if [[ "$API_PORT_443_TCP_ADDR" != "" ]]; then 
13   sed -i "s/localhost:9900/$API_PORT_443_TCP_ADDR/" /usr/src/arvados/apps/workbench/config/application.yml
14 fi
15
16 source /etc/apache2/envvars
17 /usr/sbin/apache2 -D FOREGROUND