- Missed a file add

Reported by:    pointyhat via miwi
This commit is contained in:
Philip M. Gollucci 2009-12-28 18:48:41 +00:00
parent e0f251c386
commit 39672c3e49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246792

View file

@ -0,0 +1,31 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/mail/quickml/files/Attic/pkg-install.in,v 1.1 2009-12-28 18:48:41 pgollucci Exp $
#
PATH=/bin:/usr/bin:/usr/sbin
case $2 in
PRE-INSTALL)
echo "---> Starting pre-install script:"
if pw showgroup "%%GROUP%%" 2>/dev/null; then
echo "---> Using existing group \"%%GROUP%%\""
else
echo "---> Adding group \"%%GROUP%%\""
pw addgroup %%GROUP%% -g 109 -h - || exit 1
fi
# Create user if required
if pw showuser "%%USER%%" 2>/dev/null; then
echo "---> Using existing user \"%%USER%%\""
else
echo "---> Adding user \"%%USER%%\""
pw adduser %%USER%% -u 109 -g %%GROUP%% -h - \
-d "/nonexistent" -s "/sbin/nologin" -c "quickml Server" || exit 1
fi
;;
esac