reinstall.sh 361 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -e -o pipefail
  3. DIR=$(dirname "$0")
  4. PROJECT=$DIR/../..
  5. pushd $PROJECT
  6. go install -v -trimpath -ldflags "-s -w -buildid=" -tags no_gvisor,with_quic,with_acme ./cmd/sing-box
  7. popd
  8. sudo systemctl stop sing-box
  9. sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
  10. sudo systemctl start sing-box
  11. sudo journalctl -u sing-box --output cat -f