From 0168aae1edd057a53a1e26878bdd5b014276888f Mon Sep 17 00:00:00 2001 From: Gerlando Falauto Date: Thu, 21 Mar 2024 15:16:35 +0100 Subject: [PATCH] fix(ebpf): make env file suitable for systemd [SMAGENT-6800] (#440) When using EnvironmentFile with systemd, it needs to be a plain environemnt file, we cannot use the 'export' shell builtin. --- roles/agent_install/templates/dragent_ebpf_env_file.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/agent_install/templates/dragent_ebpf_env_file.j2 b/roles/agent_install/templates/dragent_ebpf_env_file.j2 index b40a28cbc..e2be373e4 100644 --- a/roles/agent_install/templates/dragent_ebpf_env_file.j2 +++ b/roles/agent_install/templates/dragent_ebpf_env_file.j2 @@ -1,7 +1,7 @@ # Generated by Ansible. Do not edit {% if agent_install_driver_type == "universal_ebpf" %} -export SYSDIG_AGENT_DRIVER=universal_ebpf +SYSDIG_AGENT_DRIVER=universal_ebpf {% elif agent_install_driver_type == "legacy_ebpf" %} -export SYSDIG_AGENT_DRIVER=legacy_ebpf -export SYSDIG_BPF_PROBE= +SYSDIG_AGENT_DRIVER=legacy_ebpf +SYSDIG_BPF_PROBE= {% endif %}