mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-12 01:57:18 +10:00
27 lines
469 B
Bash
Executable File
27 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e -o pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
source "$SCRIPT_DIR/common.sh"
|
|
|
|
setup_environment
|
|
|
|
echo "Updating sing-box from git repository..."
|
|
cd "$PROJECT_DIR"
|
|
git fetch
|
|
git reset FETCH_HEAD --hard
|
|
git clean -fdx
|
|
|
|
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)..."
|
|
sudo journalctl -u sing-box --output cat -f
|