crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Commits
2d1a82ee
🤬
Sign In
Revert remove install shell
世界
committed
1 year ago
2d1a82ee
1 parent
46b2d3b8
Total 3 files
Show one by one
■
■ ■ ■ ■ ■
.goreleaser.yaml
skipped 117 lines
118
118
- src: LICENSE
119
119
dst: /usr/share/licenses/sing-box/LICENSE
120
120
scripts:
121
+
postinstall: release/config/postinstall.sh
121
122
postremove: release/config/postremove.sh
122
123
source:
123
124
enabled: false
skipped 14 lines
All occurrences
■ ■ ■
■ ■ ■
release/config/postinstall.sh
1
+
#!/bin/sh
2
+
3
+
mkdir -p /var/lib/sing-box
All occurrences
■
■ ■ ■ ■ ■
release/local/install.sh
skipped 13 lines
14
14
popd
15
15
16
16
sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
17
+
sudo mkdir -p /var/lib/sing-box
17
18
sudo mkdir -p /usr/local/etc/sing-box
18
19
sudo cp $PROJECT/release/config/config.json /usr/local/etc/sing-box/config.json
19
20
sudo cp $DIR/sing-box.service /etc/systemd/system
skipped 2 lines
All occurrences
Please wait...
Page is in error, reload to recover