Skip to content

Commit

Permalink
fix(pkgs): ensure 2.8 systemd unit present
Browse files Browse the repository at this point in the history
  • Loading branch information
curiositycasualty committed Oct 21, 2024
1 parent 930ca76 commit e09e3d5
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/package/nfpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ contents:
dst: /etc/kong
- src: bin/kong
dst: /usr/local/bin/kong
- src: build/package/kong.service
dst: /lib/systemd/system/kong.service
- src: build/package/kong.logrotate
dst: /etc/kong/kong.logrotate
scripts:
Expand Down
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/fix_service_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "Fixed an issue where the systemd service unit file was missing from packages."
type: bugfix
scope: Core
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/alpine-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/amazonlinux-2-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/amazonlinux-2023-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/debian-11-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/el8-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/ubuntu-20.04-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/fixtures/ubuntu-22.04-amd64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- Path : /etc/kong/kong.logrotate

- Path : /lib/systemd/system/kong.service

- Path : /usr/local/kong/include/google
Type : directory

Expand Down
2 changes: 2 additions & 0 deletions scripts/explain_manifest/suites.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def common_suites(expect, libxcrypt_no_obsolete_api: bool = False):

expect("/etc/kong/kong.logrotate", "includes logrotate config").exists()

expect("/lib/systemd/system/kong.service", "includes systemd unit file").exists()

expect("/usr/local/kong/include/openssl/**.h", "includes OpenSSL headers").exists()

# binary correctness
Expand Down

0 comments on commit e09e3d5

Please sign in to comment.