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

20 lines
279 B
Bash
Raw Normal View History

2022-08-11 11:44:54 +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-08-11 11:44:54 +08:00
2025-10-21 10:34:05 +08:00
BUILD_TAGS=$(get_build_tags)
2022-08-11 11:44:54 +08:00
2025-10-21 10:34:05 +08:00
build_sing_box "$BUILD_TAGS"
stop_service
install_binary
start_service
echo ""
echo "Reinstallation complete!"