mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
14 lines
286 B
Bash
14 lines
286 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
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 "$@"
|
||
|
else
|
||
|
exec "$@"
|
||
|
fi
|