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

20 lines
343 B
Bash
Raw Normal View History

2022-07-30 08:39:34 +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 08:39:34 +08:00
2025-10-21 10:34:05 +08:00
BUILD_TAGS=$(get_build_tags)
2022-07-30 08:39:34 +08:00
2025-10-21 10:34:05 +08:00
build_sing_box "$BUILD_TAGS"
install_binary
setup_config
setup_systemd
echo ""
echo "Installation complete!"
echo "To enable and start the service, run: $SCRIPT_DIR/enable.sh"