View | Details | Raw Unified | Return to bug 40593 | Differences between
and this patch

Collapse All | Expand All

(-)pkg-install 13 Jul 2002 01:17:29 -0000 (-1 / +7 lines)
Lines 37-43 Link Here
37
        echo "You already have a user \"${user}\", so I will use it."
37
        echo "You already have a user \"${user}\", so I will use it."
38
    else
38
    else
39
        echo "You need a user \"${user}\"."
39
        echo "You need a user \"${user}\"."
40
        if yesno "Would you like me to create it" y; then
40
       doadduser=1
41
        if [ "$BATCH" = "yes" ]; then
42
        doadduser=0
43
       else
44
        yesno "Would you like me to create it" y && doadduser=0
45
       fi
46
       if [ $doadduser = 0 ]; then
41
            /usr/sbin/pw useradd ${user} -g ${group} -h - -d /nonexistent \
47
            /usr/sbin/pw useradd ${user} -g ${group} -h - -d /nonexistent \
42
                -s /nonexistent -c "Oops Cache System" || exit
48
                -s /nonexistent -c "Oops Cache System" || exit
43
            echo "Done."
49
            echo "Done."

Return to bug 40593