mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
Fix linux package
This commit is contained in:
parent
a828c3b5da
commit
81e7b0b320
|
@ -70,6 +70,9 @@ nfpms:
|
|||
dst: /etc/systemd/system/sing-box@.service
|
||||
- src: LICENSE
|
||||
dst: /usr/share/licenses/sing-box/LICENSE
|
||||
scripts:
|
||||
postinstall: release/config/postinstall.sh
|
||||
postremove: release/config/postremove.sh
|
||||
source:
|
||||
enabled: false
|
||||
name_template: '{{ .ProjectName }}-{{ .Version }}.source'
|
||||
|
|
3
release/config/postinstall.sh
Executable file
3
release/config/postinstall.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir "/var/lib/sing-box"
|
3
release/config/postremove.sh
Executable file
3
release/config/postremove.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm -rf "/var/lib/sing-box"
|
Loading…
Reference in a new issue