Mark config file as noreplace for rpm

This commit is contained in:
Fei1Yang authored and 世界 committed 2025-04-08 14:21:08 +08:00
1 parent 9668ea69b8
commit 5adaf1ac75
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -6,6 +6,7 @@
--url "https://sing-box.sagernet.org/"
--maintainer "nekohasekai <contact-git@sekai.icu>"
--deb-field "Bug: https://github.com/SagerNet/sing-box/issues"
--config-files /etc/sing-box/config.json
release/config/config.json=/etc/sing-box/config.json
+1 -1
View File
@@ -48,7 +48,7 @@ nfpms:
contents:
- src: release/config/config.json
dst: /etc/sing-box/config.json
type: config
type: "config|noreplace"
- src: release/config/sing-box.service
dst: /usr/lib/systemd/system/sing-box.service
+1 -1
View File
@@ -130,7 +130,7 @@ nfpms:
contents:
- src: release/config/config.json
dst: /etc/sing-box/config.json
type: config
type: "config|noreplace"
- src: release/config/sing-box.service
dst: /usr/lib/systemd/system/sing-box.service