aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd22
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2004-07-28 10:45:19 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2004-07-28 10:45:19 +0000
commitfad33c4f8792768c64f54a4884559b01678adf66 (patch)
treeedd4b1e8fa247b1a4707a52186aac618fb5ef520 /mail/cyrus-imapd22
parente82e6ebe3fea14dd7bd2f7dca0e02664365c5d0a (diff)
downloadports-fad33c4f8792768c64f54a4884559b01678adf66.tar.gz
ports-fad33c4f8792768c64f54a4884559b01678adf66.zip
don't exit at failure of `pw'. some users prefer having user
`cyrus' in NIS. Reported by: nork
Notes
Notes: svn path=/head/; revision=114925
Diffstat (limited to 'mail/cyrus-imapd22')
-rw-r--r--mail/cyrus-imapd22/pkg-deinstall5
-rw-r--r--mail/cyrus-imapd22/pkg-install7
2 files changed, 5 insertions, 7 deletions
diff --git a/mail/cyrus-imapd22/pkg-deinstall b/mail/cyrus-imapd22/pkg-deinstall
index 7374db694789..e0dd1b8bb7fc 100644
--- a/mail/cyrus-imapd22/pkg-deinstall
+++ b/mail/cyrus-imapd22/pkg-deinstall
@@ -41,11 +41,10 @@ modify_cyrus_user() {
uhome=/nonexistent
if ! ${PW} mod user ${USER} -d "${uhome}" -s "${shell}"; then
- e=$?
echo "*** Failed to update user \`${USER}'."
- exit ${e}
+ else
+ echo "*** Updated user \`${USER}'."
fi
- echo "*** Updated user \`${USER}'."
}
case $2 in
diff --git a/mail/cyrus-imapd22/pkg-install b/mail/cyrus-imapd22/pkg-install
index 556a643fd972..d2ba72f75349 100644
--- a/mail/cyrus-imapd22/pkg-install
+++ b/mail/cyrus-imapd22/pkg-install
@@ -18,11 +18,10 @@ modify_cyrus_user() {
uhome=${PKG_PREFIX}/cyrus
if ! ${PW} mod user ${USER} -d "${uhome}" -s "${shell}"; then
- e=$?
- echo "*** Failed to update user \`${USER}'."
- exit ${e}
+ echo "*** Failed to update user \`${USER}'."
+ else
+ echo "*** Updated user \`${USER}'."
fi
- echo "*** Updated user \`${USER}'."
}