aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd23
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2004-07-28 18:45:19 +0800
committerume <ume@FreeBSD.org>2004-07-28 18:45:19 +0800
commit288c2607ac3df12cb48943614b542660c35b6e77 (patch)
tree54c009168906e7f1d32cd2fcd45fc51158d1f342 /mail/cyrus-imapd23
parent613c9ff0597ebb2e480fa66641be0de01debd570 (diff)
downloadfreebsd-ports-graphics-288c2607ac3df12cb48943614b542660c35b6e77.tar.gz
freebsd-ports-graphics-288c2607ac3df12cb48943614b542660c35b6e77.tar.zst
freebsd-ports-graphics-288c2607ac3df12cb48943614b542660c35b6e77.zip
don't exit at failure of `pw'. some users prefer having user
`cyrus' in NIS. Reported by: nork
Diffstat (limited to 'mail/cyrus-imapd23')
-rw-r--r--mail/cyrus-imapd23/pkg-deinstall5
-rw-r--r--mail/cyrus-imapd23/pkg-install7
2 files changed, 5 insertions, 7 deletions
diff --git a/mail/cyrus-imapd23/pkg-deinstall b/mail/cyrus-imapd23/pkg-deinstall
index 7374db69478..e0dd1b8bb7f 100644
--- a/mail/cyrus-imapd23/pkg-deinstall
+++ b/mail/cyrus-imapd23/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-imapd23/pkg-install b/mail/cyrus-imapd23/pkg-install
index 556a643fd97..d2ba72f7534 100644
--- a/mail/cyrus-imapd23/pkg-install
+++ b/mail/cyrus-imapd23/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}'."
}