summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@softwarelivre.org>2018-05-10 08:29:51 -0300
committerAntonio Terceiro <terceiro@softwarelivre.org>2018-05-10 08:29:51 -0300
commitd32e2b965d4e90c0f51a857d6aba92495e989c13 (patch)
treedf98b9365b4712e90390c29981f7b2c5bf298e45
parent2adf5b0e73d19708499f244a3b60f0da2d9c8e97 (diff)
gitserver: don't try to create /tmp/logpipe if it already exists
-rwxr-xr-xgitserver4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitserver b/gitserver
index af8e4fa..b3b7ea3 100755
--- a/gitserver
+++ b/gitserver
@@ -9,7 +9,9 @@ export APACHE_PID_FILE="${APACHE_RUN_DIR}/apache2.pid"
mkdir -p /data/git
# workaround for bug in docker < 1.9
-mkfifo -m 600 /tmp/logpipe
+if [ ! -e /tmp/logpipe ]; then
+ mkfifo -m 600 /tmp/logpipe
+fi
cat < /tmp/logpipe 1>&2 &
exec apache2 -DFOREGROUND