diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2009-01-07 07:08:24 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2009-01-07 07:08:24 +0000 |
commit | 23c20b354c1da4554da5b7045014ed9b96763fa4 (patch) | |
tree | 85e61205a4b8b23a21a46aed621d152637f76085 /mail/exim | |
parent | 1e739ca01c7d020121a4f9f36112ebff4b22d6ea (diff) | |
download | ports-23c20b354c1da4554da5b7045014ed9b96763fa4.tar.gz ports-23c20b354c1da4554da5b7045014ed9b96763fa4.zip |
Notes
Diffstat (limited to 'mail/exim')
-rw-r--r-- | mail/exim/pkg-install | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/exim/pkg-install b/mail/exim/pkg-install index 616ff41effd5..2665b5f04914 100644 --- a/mail/exim/pkg-install +++ b/mail/exim/pkg-install @@ -18,12 +18,12 @@ group=%%EXIM_GROUP%% logdir=%%LOGDIR%% if [ "$2" = "PRE-INSTALL" ]; then - if ! /usr/bin/id ${user} > /dev/null; then - /usr/sbin/pw useradd ${EXIM_USER} -g ${EXIM_GROUP} -u 125 \ - -h - -d /var/spool/exim -s /nonexistent -c "Exim User" + if ! /usr/sbin/pw groupshow ${group} >/dev/null; then + /usr/sbin/pw groupadd ${group} -g 125 fi - if ! /usr/bin/grep -q "^${group}:" /etc/group; then - /usr/sbin/pw groupadd ${EXIM_GROUP} -g 125 + if ! /usr/sbin/pw usershow ${user} >/dev/null; then + /usr/sbin/pw useradd ${user} -g ${group} -u 125 \ + -h - -d /var/spool/exim -s /nonexistent -c "Exim User" fi /bin/mkdir -p ${logdir} /usr/sbin/chown ${user}:${group} ${logdir} |