freebsd-ports/net-mgmt/satellite/pkg-install
2001-06-12 10:17:21 +00:00

17 lines
293 B
Bash

#!/bin/sh
case "$2" in
PRE-INSTALL)
if ! pw user show satellite >/dev/null 2>&1
then
echo "===> Creating user satellite"
pw add user -n satellite -c 'Satellite system user' -s /sbin/nologin -h - -d /
fi
;;
POST-INSTALL)
;;
*)
echo "Incorrect parameter"
exit 1
;;
esac