freebsd-ports/sysutils/amazon-ssm-agent/pkg-deinstall
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

7 lines
96 B
Bash

#!/bin/sh
if [ "$2" = "DEINSTALL" ]; then
echo "Removing ssm-user"
pw userdel ssm-user -r
fi