aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/satellite/pkg-install
blob: 61b065a8b23709716f97adfb56383caa34a38956 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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