install.sh 343 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. set -e -o pipefail
  3. SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
  4. source "$SCRIPT_DIR/common.sh"
  5. setup_environment
  6. BUILD_TAGS=$(get_build_tags)
  7. build_sing_box "$BUILD_TAGS"
  8. install_binary
  9. setup_config
  10. setup_systemd
  11. echo ""
  12. echo "Installation complete!"
  13. echo "To enable and start the service, run: $SCRIPT_DIR/enable.sh"