Skip to content

Commit 4807b3f

Browse files
authored
[Elastic Agent] Fix DEB/RPM installation (#23038)
* Update filename to not overwrite other file when package is built. * Add changelog.
1 parent 1699f7d commit 4807b3f

4 files changed

Lines changed: 2 additions & 1 deletion

File tree

dev-tools/packaging/packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ shared:
5959
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/linux/elastic-agent.unit.tmpl'
6060
mode: 0644
6161
/etc/init.d/{{.BeatServiceName}}:
62-
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/{{.PackageType}}/elastic-agent.sh.tmpl'
62+
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/{{.PackageType}}/elastic-agent.init.sh.tmpl'
6363
mode: 0755
6464
/var/lib/{{.BeatName}}/data/{{.BeatName}}-{{ commit_short }}/{{.BeatName}}{{.BinaryExt}}:
6565
source: build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}

dev-tools/packaging/templates/deb/elastic-agent.sh.tmpl renamed to dev-tools/packaging/templates/deb/elastic-agent.init.sh.tmpl

File renamed without changes.

dev-tools/packaging/templates/rpm/elastic-agent.sh.tmpl renamed to dev-tools/packaging/templates/rpm/elastic-agent.init.sh.tmpl

File renamed without changes.

x-pack/elastic-agent/CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- Fix deb/rpm packaging for Elastic Agent {pull}22153[22153]
2828
- Fix composable input processor promotion to fix duplicates {pull}22344[22344]
2929
- Fix sysv init files for deb/rpm installation {pull}22543[22543]
30+
- Fix shell wrapper for deb/rpm packaging {pull}23038[23038]
3031
- Fixed parsing of npipe URI {pull}22978[22978]
3132

3233
==== New features

0 commit comments

Comments
 (0)