Skip to content

Commit

Permalink
Agent bakery super_server: Call manage-binaries.sh for Linux
Browse files Browse the repository at this point in the history
CMK-20560

Change-Id: I75b52eb21b2924019868fdcf88822ed03efd7b38
  • Loading branch information
andiumbreit committed Dec 3, 2024
1 parent 6df602e commit 465a368
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agents/check-mk-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ define __spec_install_pre %{___build_pre} &&\
/var/lib/check_mk_agent
/var/lib/cmk-agent/cmk-agent-ctl.gz
/var/lib/cmk-agent/scripts/cmk-agent-useradd.sh
/var/lib/cmk-agent/scripts/manage-binaries.sh
/var/lib/cmk-agent/scripts/migrate.sh
/var/lib/cmk-agent/scripts/super-server/0_systemd/check-mk-agent-async.service
/var/lib/cmk-agent/scripts/super-server/0_systemd/check-mk-agent.socket
Expand Down Expand Up @@ -85,6 +86,8 @@ fi

/bin/sh /var/lib/cmk-agent/scripts/super-server/setup trigger

/bin/sh /var/lib/cmk-agent/scripts/manage-binaries.sh install

%preun

case "$1" in
Expand All @@ -93,3 +96,5 @@ case "$1" in
/bin/sh /var/lib/cmk-agent/scripts/super-server/setup trigger
;;
esac

/bin/sh /var/lib/cmk-agent/scripts/manage-binaries.sh remove
2 changes: 2 additions & 0 deletions agents/debian/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ if "/usr/bin"/cmk-agent-ctl --version >/dev/null 2>&1; then
fi

/bin/sh /var/lib/cmk-agent/scripts/super-server/setup trigger

/bin/sh /var/lib/cmk-agent/scripts/manage-binaries.sh install
2 changes: 2 additions & 0 deletions agents/debian/control/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ case "$1" in
/bin/sh /var/lib/cmk-agent/scripts/super-server/setup trigger
;;
esac

/bin/sh /var/lib/cmk-agent/scripts/manage-binaries.sh remove

0 comments on commit 465a368

Please sign in to comment.