mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
16 lines
578 B
Bash
Executable file
16 lines
578 B
Bash
Executable file
#!/bin/bash
|
|
|
|
port="${PORT:-8080}"
|
|
directory="${DIRECTORY:-/data/}"
|
|
|
|
npps4="${NPPS4_ADDRESS:-http://127.0.0.1:51376}"
|
|
|
|
https=$([ "$HTTPS" = "true" ] && echo "--https" || echo "")
|
|
|
|
hidden=$([ "$HIDDEN" = "true" ] && echo "--hidden" || echo "")
|
|
|
|
maxTime="${MAXTIME:-0}"
|
|
|
|
purge=$([ "$PURGE" = "true" ] && echo "--purge" || echo "")
|
|
|
|
/root/ew/ew --path $directory --port $port --npps4 $npps4 $purge $hidden $https --global-android "$ANDROID_GLOBAL" --japan-android "$ANDROID_JAPAN" --global-ios "$IOS_GLOBAL" --japan-ios "$IOS_JAPAN" --assets-url "$ASSET_URL" --max-time $maxTime
|