amazon-ssm-agent: add the system's software to the path

Follow up to #342584.

Similarly to that PR, it is surprising that software which was installed by the user isn't available to a script run over ssm by default.

When executing commands with ssm, users will now have more predictable access to baked-in software instead of an extremely bare-minimum set currently there.

(cherry picked from commit 7547a1f5f8)
This commit is contained in:
Graham Christensen 2024-09-18 23:18:28 -04:00 committed by github-actions[bot]
parent 01c9cdda2c
commit e6fb8a4224

View File

@ -45,7 +45,12 @@ in {
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
path = [ fake-lsb-release pkgs.coreutils ];
path = [
fake-lsb-release
pkgs.coreutils
"/run/wrappers"
"/run/current-system/sw"
];
serviceConfig = {
ExecStart = "${cfg.package}/bin/amazon-ssm-agent";