Skip to content

Commit

Permalink
fix(build): set type of kong.logrotate as config|noreplace avoid over…
Browse files Browse the repository at this point in the history
…writing during the upgrade (#13348)

 FTI-6079

---------

Signed-off-by: tzssangglass <[email protected]>
  • Loading branch information
tzssangglass authored Jul 23, 2024
1 parent 163f72a commit 95fad50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/package/nfpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ contents:
- src: nfpm-prefix/share
dst: /usr/local/share
type: tree
- src: nfpm-prefix/etc/kong
dst: /etc/kong
- dst: /etc/kong
type: dir
- src: bin/kong
dst: /usr/local/bin/kong
- src: bin/kong-health
Expand All @@ -42,8 +42,12 @@ 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: nfpm-prefix/etc/kong/kong.conf.default
dst: /etc/kong/kong.conf.default
type: config
- src: /usr/local/openresty/bin/resty
dst: /usr/local/bin/resty
type: symlink
Expand Down
5 changes: 5 additions & 0 deletions changelog/unreleased/kong/fix-type-of-logrotate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
message: |
The kong.logrotate configuration file will no longer be overwritten during upgrade.
When upgrading, set the environment variable `DEBIAN_FRONTEND=noninteractive` on Debian/Ubuntu to avoid any interactive prompts and enable fully automatic upgrades.
type: bugfix
scope: Core

1 comment on commit 95fad50

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:95fad50619d7207916251b1bec2c372a8eff6427
Artifacts available https://github.com/Kong/kong/actions/runs/10051868364

Please sign in to comment.