mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
- handle transition from /sbin/nologin -> /usr/sbin/nologin
This commit is contained in:
parent
22d3d0c6e7
commit
e429740515
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113756
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/www/apache13-modssl/Attic/pkg-install,v 1.1 2001-10-22 18:05:33 ache Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/www/apache13-modssl/Attic/pkg-install,v 1.2 2004-07-16 06:17:27 dinoex Exp $
|
||||
#
|
||||
|
||||
if [ "$2" != "PRE-INSTALL" ]; then
|
||||
@ -21,8 +21,9 @@ if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
||||
fi
|
||||
|
||||
if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
nologin=`grep operator /etc/passwd | cut -d : -f 7`
|
||||
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
|
||||
-s "/sbin/nologin" -d "/nonexistent" \
|
||||
-s "${nologin}" -d "/nonexistent" \
|
||||
-c "World Wide Web Owner"; \
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
|
Loading…
Reference in New Issue
Block a user