aboutsummaryrefslogtreecommitdiff
path: root/net/openldap23-server/pkg-install
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2003-11-14 03:57:13 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2003-11-14 03:57:13 +0000
commitdf15f5fedf93ebb5a0f6c59931c9140680410aae (patch)
tree2d8e33442ac49d46b6a6f74dcbc9c07fcd5326dc /net/openldap23-server/pkg-install
parentbdb25d15644cf7ae18d54eae2ddc88d770176cc8 (diff)
downloadports-df15f5fedf93ebb5a0f6c59931c9140680410aae.tar.gz
ports-df15f5fedf93ebb5a0f6c59931c9140680410aae.zip
Notes
Diffstat (limited to 'net/openldap23-server/pkg-install')
-rw-r--r--net/openldap23-server/pkg-install10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/openldap23-server/pkg-install b/net/openldap23-server/pkg-install
index 47b2ea825164..ee0a9e8588bd 100644
--- a/net/openldap23-server/pkg-install
+++ b/net/openldap23-server/pkg-install
@@ -13,9 +13,9 @@ FTPUSERS=/etc/ftpusers
case $2 in
PRE-INSTALL)
if ! ${PW} usershow -n ldap >/dev/null 2>&1; then
+ ${ECHO_CMD}
if ! ${PW} groupshow -n ldap >/dev/null 2>&1; then
if ! ${PW} groupadd -n ldap -g 389; then
- ${ECHO_CMD}
${ECHO_CMD} "*** Failed to add a group ldap with id 389."
${ECHO_CMD}
${ECHO_CMD} "Please add the ldap user manually with"
@@ -24,12 +24,10 @@ PRE-INSTALL)
${ECHO_CMD} "and retry installing this package."
exit 1
fi
+ ${ECHO_CMD} "===> Group 'ldap' created."
fi
- if ${PW} useradd -n ldap -u 389 -g ldap -c 'OpenLDAP Server' \
+ if ! ${PW} useradd -n ldap -u 389 -g ldap -c 'OpenLDAP Server' \
-d /nonexistent -s /sbin/nologin -h -; then
- ${GREP} -qs '^ldap$' ${FTPUSERS} || ${ECHO_CMD} ldap >> ${FTPUSERS}
- else
- ${ECHO_CMD}
${ECHO_CMD} "*** Failed to add an user ldap with id 389."
${ECHO_CMD}
${ECHO_CMD} "Please add the ldap user manually with"
@@ -38,6 +36,8 @@ PRE-INSTALL)
${ECHO_CMD} "and retry installing this package."
exit 1
fi
+ ${GREP} -qs '^ldap$' ${FTPUSERS} || ${ECHO_CMD} ldap >> ${FTPUSERS}
+ ${ECHO_CMD} "===> Account 'ldap' created."
fi
;;
esac