Update scripts

This commit is contained in:
世界 2023-02-09 13:26:31 +08:00
parent c14b353a29
commit 9db3cb5cb7
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
5 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
mkdir "/var/lib/sing-box"
mkdir -p /var/lib/sing-box

View File

@ -1,3 +1,3 @@
#!/bin/sh
rm -rf "/var/lib/sing-box"
rm -rf /var/lib/sing-box

View File

@ -14,6 +14,7 @@ go install -v -trimpath -ldflags "-s -w -buildid=" -tags with_quic,with_wireguar
popd
sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
sudo mkdir -p /var/lib/sing-box
sudo mkdir -p /usr/local/etc/sing-box
sudo cp $PROJECT/release/config/config.json /usr/local/etc/sing-box/config.json
sudo cp $DIR/sing-box.service /etc/systemd/system

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e -o pipefail
curl -Lo go.tar.gz https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
curl -Lo go.tar.gz https://go.dev/dl/go1.20.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go.tar.gz
rm go.tar.gz

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
sudo systemctl stop sing-box
sudo rm -rf /var/lib/sing-box
sudo rm -rf /usr/local/bin/sing-box
sudo rm -rf /usr/local/etc/sing-box
sudo rm -rf /etc/systemd/system/sing-box.service