Lines 16-22
Link Here
|
16 |
if pw group show "${GROUP}" 2>/dev/null; then |
16 |
if pw group show "${GROUP}" 2>/dev/null; then |
17 |
echo "You already have a group \"${GROUP}\", so I will use it." |
17 |
echo "You already have a group \"${GROUP}\", so I will use it." |
18 |
else |
18 |
else |
19 |
if pw groupadd ${GROUP} ; then |
19 |
if pw groupadd -g 361 -n ${GROUP} ; then |
20 |
echo "Added group \"${GROUP}\"." |
20 |
echo "Added group \"${GROUP}\"." |
21 |
else |
21 |
else |
22 |
echo "Adding group \"${GROUP}\" failed..." |
22 |
echo "Adding group \"${GROUP}\" failed..." |
Lines 27-33
Link Here
|
27 |
if pw user show "${USER}" 2>/dev/null; then |
27 |
if pw user show "${USER}" 2>/dev/null; then |
28 |
echo "You already have a user \"${USER}\", so I will use it." |
28 |
echo "You already have a user \"${USER}\", so I will use it." |
29 |
else |
29 |
else |
30 |
if pw useradd ${USER} -g ${GROUP} -h - \ |
30 |
if pw useradd -u 361 -n ${USER} -g ${GROUP} -h - \ |
31 |
-d /nonexistent -c "stunnel Daemon" -s /sbin/nologin |
31 |
-d /nonexistent -c "stunnel Daemon" -s /sbin/nologin |
32 |
then |
32 |
then |
33 |
echo "Added user \"${USER}\"." |
33 |
echo "Added user \"${USER}\"." |