mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 16:54:48 +00:00
Separate agent remediation runtime
This commit is contained in:
parent
1720fd635b
commit
d607d5cf46
80 changed files with 6418 additions and 82 deletions
|
|
@ -143,6 +143,10 @@ pulse_release_stage_server_archive() {
|
|||
echo "Error: PULSE_RELEASE_AGENT_HELPER_TARGETS is empty." >&2
|
||||
return 1
|
||||
fi
|
||||
if [[ ${#PULSE_RELEASE_AGENT_RUNNER_TARGETS[@]} -eq 0 ]]; then
|
||||
echo "Error: PULSE_RELEASE_AGENT_RUNNER_TARGETS is empty." >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
rm -rf "${staging_dir}"
|
||||
mkdir -p "${staging_dir}/bin" "${staging_dir}/scripts"
|
||||
|
|
@ -162,6 +166,11 @@ pulse_release_stage_server_archive() {
|
|||
dest="${staging_dir}/bin/pulse-agent-helper-${target}"
|
||||
install -m 0755 "${src}" "${dest}"
|
||||
done
|
||||
for target in "${PULSE_RELEASE_AGENT_RUNNER_TARGETS[@]}"; do
|
||||
src="${agent_binary_dir}/pulse-agent-runner-${target}"
|
||||
dest="${staging_dir}/bin/pulse-agent-runner-${target}"
|
||||
install -m 0755 "${src}" "${dest}"
|
||||
done
|
||||
(
|
||||
cd "${staging_dir}/bin"
|
||||
ln -sf pulse-agent-windows-amd64.exe pulse-agent-windows-amd64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue