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
6 lines
131 B
Bash
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
|