mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 02:37:15 +00:00
13 lines
286 B
Bash
Executable file
13 lines
286 B
Bash
Executable file
#!/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
|