aboutsummaryrefslogtreecommitdiff
path: root/mail/exim/pkg-install
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-06-07 10:53:11 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-06-07 10:53:11 +0000
commitc7cbd04be909957bd352b72c50d4fdd250af8acc (patch)
treec4dcac2b2b70ce90fe2a8bdd7ea68131ec352bd6 /mail/exim/pkg-install
parent663ee0a8c78dd538fd634b4ce28b8a7741a79ffe (diff)
downloadports-c7cbd04be909957bd352b72c50d4fdd250af8acc.tar.gz
ports-c7cbd04be909957bd352b72c50d4fdd250af8acc.zip
Notes
Diffstat (limited to 'mail/exim/pkg-install')
-rw-r--r--mail/exim/pkg-install7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/exim/pkg-install b/mail/exim/pkg-install
index d68718153f20..9011e4b69514 100644
--- a/mail/exim/pkg-install
+++ b/mail/exim/pkg-install
@@ -15,18 +15,19 @@ PKG_PREFIX=${PKG_PREFIX:=%%PREFIX%%}
user=%%EXIM_USER%%
group=%%EXIM_GROUP%%
+logdir=%%LOGDIR%%
if [ "$2" = "PRE-INSTALL" ]; then
if ! /usr/bin/id ${user} > /dev/null; then
echo "Exim requires user ${user}. Please update your system." 1>&2
exit 1
fi
- if ! /usr/bin/grep -q "^${group}:" < /etc/group; then
+ if ! /usr/bin/grep -q "^${group}:" /etc/group; then
echo "Exim requires group ${group}. Please update your system." 1>&2
exit 1
fi
- /bin/mkdir -p /var/log/exim
- /usr/sbin/chown ${user}:${group} /var/log/exim
+ /bin/mkdir -p ${logdir}
+ /usr/sbin/chown ${user}:${group} ${logdir}
fi
if [ "$2" = "POST-INSTALL" ]; then