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
96 B
Bash
6 lines
96 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" = "DEINSTALL" ]; then
|
|
echo "Removing ssm-user"
|
|
pw userdel ssm-user -r
|
|
fi
|