do not double leading slash in created user's home directory
This commit is contained in:
parent
7ebdd2888e
commit
d6024a3076
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73713
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/news/husky-base/Attic/pkg-install,v 1.1 2003-01-05 19:34:24 fjoe Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/news/husky-base/Attic/pkg-install,v 1.2 2003-01-21 10:14:47 fjoe Exp $
|
||||
#
|
||||
|
||||
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
|
||||
@ -58,7 +58,7 @@ if [ x"$2" = xPRE-INSTALL ]; 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 /${PKG_PREFIX}/fido \
|
||||
-d ${PKG_PREFIX}/fido \
|
||||
-c "Fido System"
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
|
Loading…
Reference in New Issue
Block a user