mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
- Make arguments passed to "pw user add" match that of ports/UIDs.
This commit is contained in:
parent
9e1ae06925
commit
ba347fefe0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208692
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/net-mgmt/cricket/files/Attic/pkg-install.in,v 1.1 2005-08-29 15:10:43 vs Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/net-mgmt/cricket/files/Attic/pkg-install.in,v 1.2 2008-03-09 21:32:01 koitsu Exp $
|
||||
#
|
||||
|
||||
GROUP=%%GROUP%%
|
||||
@ -28,7 +28,7 @@ if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
|
||||
echo "You already have a user \"${USER}\", so I will use it."
|
||||
else
|
||||
if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
|
||||
-d /usr/local/www -s /bin/sh -c "WWW Administrator"
|
||||
-d /usr/local/cricket -s /usr/sbin/nologin -c "Cricket Monitoring User"
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user