Add claude code multiplexer service
This commit is contained in:
@@ -2,17 +2,18 @@
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
if [ -d /usr/local/go ]; then
|
||||
export PATH="$PATH:/usr/local/go/bin"
|
||||
fi
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
source "$SCRIPT_DIR/common.sh"
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
PROJECT=$DIR/../..
|
||||
setup_environment
|
||||
|
||||
pushd $PROJECT
|
||||
go install -v -trimpath -ldflags "-s -w -buildid=" -tags with_quic,with_wireguard,with_acme ./cmd/sing-box
|
||||
popd
|
||||
BUILD_TAGS=$(get_build_tags)
|
||||
|
||||
sudo systemctl stop sing-box
|
||||
sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
|
||||
sudo systemctl start sing-box
|
||||
build_sing_box "$BUILD_TAGS"
|
||||
|
||||
stop_service
|
||||
install_binary
|
||||
start_service
|
||||
|
||||
echo ""
|
||||
echo "Reinstallation complete!"
|
||||
|
||||
Reference in New Issue
Block a user