aboutsummaryrefslogtreecommitdiffstats
path: root/release/docker
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2020-04-11 12:25:56 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2020-04-11 12:25:56 +0200
commit55527c00eb35bf3b07b361363fd8ca2961afc8ba (patch)
tree4d9067ff2bcfd921dcb24852b522537f948e6801 /release/docker
parent5ea75a1a8176f764429fb45875626b1b7ef6644c (diff)
downloadmitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.tar.gz
mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.tar.bz2
mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.zip
docs: rename docs scripts and improve template
Diffstat (limited to 'release/docker')
-rwxr-xr-xrelease/docker/docker-entrypoint.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/release/docker/docker-entrypoint.sh b/release/docker/docker-entrypoint.sh
index a4abe4ce..7bb3028a 100755
--- a/release/docker/docker-entrypoint.sh
+++ b/release/docker/docker-entrypoint.sh
@@ -1,13 +1,16 @@
-#!/bin/sh
-set -e
+#!/usr/bin/env bash
+
+set -o errexit
+set -o pipefail
+set -o nounset
+# set -o xtrace
MITMPROXY_PATH="/home/mitmproxy/.mitmproxy"
if [[ "$1" = "mitmdump" || "$1" = "mitmproxy" || "$1" = "mitmweb" ]]; then
- mkdir -p "$MITMPROXY_PATH"
- chown -R mitmproxy:mitmproxy "$MITMPROXY_PATH"
-
- su-exec mitmproxy "$@"
+ mkdir -p "$MITMPROXY_PATH"
+ chown -R mitmproxy:mitmproxy "$MITMPROXY_PATH"
+ su-exec mitmproxy "$@"
else
- exec "$@"
+ exec "$@"
fi