18 lines
293 B
Bash
18 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
|