[GH-ISSUE #166] do not overwrite server.yaml #136

Closed
opened 2026-05-07 00:20:25 +02:00 by BreizhHardware · 5 comments

Originally created by @waclaw66 on GitHub (Mar 14, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/166

Hi,
could you please enhance rpm install script to not overwrite /etc/ntfy/server.yaml configuration. Instead of it create server.rpmnew in the usual way?

Thanks.

Originally created by @waclaw66 on GitHub (Mar 14, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/166 Hi, could you please enhance rpm install script to not overwrite /etc/ntfy/server.yaml configuration. Instead of it create server.rpmnew in the usual way? Thanks.
BreizhHardware 2026-05-07 00:20:25 +02:00
Author
Owner

@binwiederhier commented on GitHub (Mar 14, 2022):

I this that's just config|noreplace in https://github.com/binwiederhier/ntfy/blob/main/.goreleaser.yml#L62 like described here: https://goreleaser.com/customization/nfpm/

I won't be able to test this. Is this correct?

<!-- gh-comment-id:1066620805 --> @binwiederhier commented on GitHub (Mar 14, 2022): I this that's just `config|noreplace` in https://github.com/binwiederhier/ntfy/blob/main/.goreleaser.yml#L62 like described here: https://goreleaser.com/customization/nfpm/ I won't be able to test this. Is this correct?
Author
Owner

@waclaw66 commented on GitHub (Mar 14, 2022):

I think noreplace can be used or specify them according docs...

      # These config files will not be replaced by new versions if they were
      # changed by the user. Corresponds to %config(noreplace).
      config_noreplace_files:
        path/to/local/bar.con: /etc/bar.conf

I can check it if you provide a test rpm for x86_64.

<!-- gh-comment-id:1066653297 --> @waclaw66 commented on GitHub (Mar 14, 2022): I think `noreplace` can be used or specify them according docs... ``` yaml # These config files will not be replaced by new versions if they were # changed by the user. Corresponds to %config(noreplace). config_noreplace_files: path/to/local/bar.con: /etc/bar.conf ``` I can check it if you provide a test rpm for x86_64.
Author
Owner

@binwiederhier commented on GitHub (Mar 14, 2022):

Pretty sure that github.com/binwiederhier/ntfy@53e08988e7 will do it, though can provide a test rpm for you shortly (probably after dinner).

<!-- gh-comment-id:1067308184 --> @binwiederhier commented on GitHub (Mar 14, 2022): Pretty sure that https://github.com/binwiederhier/ntfy/commit/53e08988e7821996686bcc12e3d7b70f2745a05a will do it, though can provide a test rpm for you shortly (probably after dinner).
Author
Owner

@binwiederhier commented on GitHub (Mar 14, 2022):

nvm, here it is: https://phil.nopaste.net/2w23NWuEDS?d=1&f=ntfy_v1.17.1-next_linux_amd64.rpm&a=yy7uex5F6b

<!-- gh-comment-id:1067309542 --> @binwiederhier commented on GitHub (Mar 14, 2022): nvm, here it is: https://phil.nopaste.net/2w23NWuEDS?d=1&f=ntfy_v1.17.1-next_linux_amd64.rpm&a=yy7uex5F6b
Author
Owner

@waclaw66 commented on GitHub (Mar 14, 2022):

Works fine now. Thanks!

<!-- gh-comment-id:1067314073 --> @waclaw66 commented on GitHub (Mar 14, 2022): Works fine now. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#136
No description provided.