reinstall.sh 279 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. stop_service
  9. install_binary
  10. start_service
  11. echo ""
  12. echo "Reinstallation complete!"