shadowmire: use script dir as default path

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-09-16 19:04:22 +08:00
parent 657f35a527
commit 15a5d17689
No known key found for this signature in database

View File

@ -1,8 +1,11 @@
#!/bin/bash
set -e
set -o pipefail
SHADOWMIRE=${SHADOWMIRE:-"/home/scripts/shadowmire.py"}
_here=`dirname $(realpath $0)`
SHADOWMIRE=${SHADOWMIRE:-"${_here}/shadowmire.py"}
PYPI_MASTER="https://pypi.org"
TUNASYNC_UPSTREAM=${TUNASYNC_UPSTREAM_URL:-$PYPI_MASTER}