2018-01-15 08:03:13 +00:00
|
|
|
#!/bin/sh
|
2019-09-10 06:05:59 +00:00
|
|
|
ORIG_ONIONR_RUN_DIR=`pwd`
|
2019-11-04 06:31:13 +00:00
|
|
|
export ORIG_ONIONR_RUN_DIR
|
2018-11-11 02:10:58 +00:00
|
|
|
cd "$(dirname "$0")"
|
2020-12-15 06:20:27 +00:00
|
|
|
|
|
|
|
[[ -n "$USE_TOR" ]] || USE_TOR=1
|
|
|
|
[[ -n "$PORT" ]] || PORT=8080
|
|
|
|
[[ -n "$KEEP_LOG" ]] || KEEP_LOG=0
|
|
|
|
[[ -n "$STORE_PLAINTEXT" ]] || STORE_PLAINTEXT=1
|
|
|
|
|
|
|
|
PRIVKEY_OPT=""
|
|
|
|
[[ -f "privkey.key" ]] && PRIVKEY_OPT="--private-key privkey.key"
|
|
|
|
|
|
|
|
python run-onionr-node.py \
|
|
|
|
--open-ui 0 \
|
|
|
|
--onboarding 0 \
|
|
|
|
--bind-address 0.0.0.0 \
|
|
|
|
--port $PORT \
|
|
|
|
--use-tor $USE_TOR \
|
|
|
|
--keep-log-on-exit $KEEP_LOG \
|
|
|
|
--store-plaintext $STORE_PLAINTEXT \
|
|
|
|
$PRIVKEY_OPT \
|
|
|
|
"$@"
|