diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2020-04-11 12:25:56 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2020-04-11 12:25:56 +0200 |
commit | 55527c00eb35bf3b07b361363fd8ca2961afc8ba (patch) | |
tree | 4d9067ff2bcfd921dcb24852b522537f948e6801 /release/docker | |
parent | 5ea75a1a8176f764429fb45875626b1b7ef6644c (diff) | |
download | mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.tar.gz mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.tar.bz2 mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.zip |
docs: rename docs scripts and improve template
Diffstat (limited to 'release/docker')
-rwxr-xr-x | release/docker/docker-entrypoint.sh | 17 |
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 |