MrMEEE / bitwarden_rs_rpm

20 stars 2 forks source link

CentOS: Configuration is overwritten after update #5

Open muelheim-ruhr opened 4 years ago

muelheim-ruhr commented 4 years ago

After each update, the configuration file is overwritten with the standard file, after which the service is restarted and fails. Is it possible to refer to another local configuration in the configuration file (e.g. INCLUDE_CONFIG=/opt/bitwarden-rs/bitwarden-rs-local.conf) or to prevent overwriting in another way?

CentOS 7.7.1908 bitwarden_rs 1.13.1.gitbaf7d1b

nathanbriley commented 4 years ago

Just experienced this when updating to 1.15.1 . I believe if line 59 in bitwarden_rs.spec is changed then it will behave like other services where customized configs aren't overwritten but instead you get the .rpmnew version.

%config %{service_configdir}/bitwarden-rs.conf

to

%config(noreplace) %{service_configdir}/bitwarden-rs.conf