Files
sing-box-extended-mirror/release/local/debug.sh
T

27 lines
469 B
Bash
Raw Normal View History

2022-07-30 14:50:33 +08:00
#!/usr/bin/env bash
set -e -o pipefail
2025-10-21 10:34:05 +08:00
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/common.sh"
2022-08-27 22:27:58 +08:00
2025-10-21 10:34:05 +08:00
setup_environment
2022-07-30 14:50:33 +08:00
2025-10-21 10:34:05 +08:00
echo "Updating sing-box from git repository..."
cd "$PROJECT_DIR"
2022-07-30 14:50:33 +08:00
git fetch
git reset FETCH_HEAD --hard
git clean -fdx
2025-10-21 10:34:05 +08:00
BUILD_TAGS=$(get_build_tags "debug")
build_sing_box "$BUILD_TAGS"
stop_service
install_binary
start_service
echo ""
echo "Following service logs (Ctrl+C to exit)..."
2022-07-30 14:50:33 +08:00
sudo journalctl -u sing-box --output cat -f