diff --git a/.fpm b/.fpm index 718244b2..8f6faf91 100644 --- a/.fpm +++ b/.fpm @@ -7,6 +7,8 @@ --maintainer "nekohasekai " --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 release/config/sing-box.service=/usr/lib/systemd/system/sing-box.service diff --git a/.goreleaser.fury.yaml b/.goreleaser.fury.yaml index beef42ec..c149b1f4 100644 --- a/.goreleaser.fury.yaml +++ b/.goreleaser.fury.yaml @@ -50,7 +50,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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4a7efcf4..23e0771f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -132,7 +132,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