mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Missed a file add
Reported by: pointyhat via miwi
This commit is contained in:
parent
e0f251c386
commit
39672c3e49
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246792
1 changed files with 31 additions and 0 deletions
31
mail/quickml/files/pkg-install.in
Normal file
31
mail/quickml/files/pkg-install.in
Normal 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
|
Loading…
Add table
Reference in a new issue