Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): set type of kong.logrotate as config|noreplace avoid overwriting during the upgrade #13348

Merged
merged 6 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
tzssangglass marked this conversation as resolved.
Show resolved Hide resolved
- 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
tzssangglass marked this conversation as resolved.
Show resolved Hide resolved
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
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/fix-type-of-logrotate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "Set type of kong.logrotate as `config|noreplace` to avoid overwriting during the upgrade."
type: bugfix
scope: Core
Loading