rpm: preserve existing configs on package upgrade

This commit is contained in:
filimonov 2019-09-26 07:10:41 +02:00 committed by GitHub
parent 8bce0fa9cb
commit 40c9d44a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,6 +210,7 @@ function make_rpm {
| grep -vF '%dir "/etc/cron.d/"' \
| grep -vF '%dir "/etc/systemd/system/"' \
| grep -vF '%dir "/etc/systemd/"' \
| sed -e 's|%config |%config(noreplace) |' \
> ${PACKAGE}-$VERSION_FULL-2.spec
}