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.
This commit is contained in:
Graham Christensen 2024-09-18 23:18:28 -04:00 committed by GitHub
parent 5a7a587ad7
commit 7547a1f5f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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