freebsd-ports/sysutils/amazon-ssm-agent/pkg-install
Colin Percival 4548cd1a1a Update amazon-ssm-agent to 2.3.612.0.
This adds support for "sessions", aka. creating a remote shell via the Agent.

In order to support this, an "ssm-user" account is created when the package
is installed; we create this via pkg-install rather than the USERS= / UIDs
functionality, since ssm-user needs to be in wheel and needs to have a home
directory.

Thanks to:	Alexey Milevsky
2019-05-16 01:09:41 +00:00

6 lines
131 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
echo "Creating ssm-user for SSM Agent Sessions"
pw useradd ssm-user -G wheel -m
fi