-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use direct download of proxy to fix Travis (#473)
Co-authored-by: jrfnl <[email protected]>
- Loading branch information
1 parent
5fdcc83
commit 83cd17f
Showing
4 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
PROXYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
PORT=${PORT:-9000} | ||
|
||
PROXYBIN=${PROXYBIN:-"$(which mitmdump)"} | ||
ARGS="-s '$PROXYDIR/proxy.py' -p $PORT" | ||
if [[ ! -z "$AUTH" ]]; then | ||
ARGS="$ARGS --singleuser=$AUTH" | ||
fi | ||
PIDFILE="$PROXYDIR/proxy-$PORT.pid" | ||
|
||
set -x | ||
|
||
start-stop-daemon --verbose --start --background --pidfile $PIDFILE --make-pidfile --exec $PROXYBIN -- $ARGS | ||
|
||
ps -p $(cat $PIDFILE) u | ||
sleep 2 | ||
ps -p $(cat $PIDFILE) u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters