summaryrefslogtreecommitdiff
path: root/gitserver
blob: b3b7ea39323cb8705d936b040adde98083ef31e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

. /etc/apache2/envvars
export APACHE_RUN_DIR=/tmp
export APACHE_PID_FILE="${APACHE_RUN_DIR}/apache2.pid"

mkdir -p /data/git

# workaround for bug in docker < 1.9
if [ ! -e /tmp/logpipe ]; then
    mkfifo -m 600 /tmp/logpipe
fi
cat < /tmp/logpipe 1>&2 &

exec apache2 -DFOREGROUND