diff --git a/build/package/nfpm.yaml b/build/package/nfpm.yaml index 65117228bb7d..a3a4adf93faa 100644 --- a/build/package/nfpm.yaml +++ b/build/package/nfpm.yaml @@ -42,6 +42,7 @@ contents: dst: /lib/systemd/system/kong.service - src: build/package/kong.logrotate dst: /etc/kong/kong.logrotate + type: config|noreplace file_info: mode: 0644 - src: /usr/local/openresty/bin/resty diff --git a/changelog/unreleased/kong/fix-type-of-logrotate.yml b/changelog/unreleased/kong/fix-type-of-logrotate.yml new file mode 100644 index 000000000000..63247b72433c --- /dev/null +++ b/changelog/unreleased/kong/fix-type-of-logrotate.yml @@ -0,0 +1,3 @@ +message: "set type of kong.logrotate as config|noreplace avoid overwriting during the upgrade" +type: bugfix +scope: Core