diff options
| author | Xin LI <delphij@FreeBSD.org> | 2008-11-15 21:43:26 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2008-11-15 21:43:26 +0000 |
| commit | 5228433834badf1d89d1bde7e74a944207567aa8 (patch) | |
| tree | e80d1288c49f774597c6db4a2ca5d6d59b5cf631 /mail/dovecot/files/dovecot.sh.in | |
| parent | This is a short script you can run from within an existing git (diff) | |
Update to 1.1.6.
PR: ports/128469
Submitted by: maintainer (see reply to the PR)
Diffstat (limited to 'mail/dovecot/files/dovecot.sh.in')
| -rw-r--r-- | mail/dovecot/files/dovecot.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/dovecot/files/dovecot.sh.in b/mail/dovecot/files/dovecot.sh.in index 25fb7281c054..3db31630ed93 100644 --- a/mail/dovecot/files/dovecot.sh.in +++ b/mail/dovecot/files/dovecot.sh.in @@ -30,8 +30,8 @@ dovecot_prestart() { # Ensure runtime directories exist with correct permissions local base user gid base=/var/run/${name} - user=$(awk -F '[[:space:]]*=[[:space:]]*' '/^[[:space:]]*login_user[[:space:]]*=/ { print $2 }' ${required_files}) - gid=$(pw usershow -n "${user:-${name}}" 2>/dev/null | cut -d: -f4) + user=$(/usr/bin/awk -F '[[:space:]]*=[[:space:]]*' '/^[[:space:]]*login_user[[:space:]]*=/ { print $2 }' ${required_files})
+ gid=$(/usr/sbin/pw usershow -n "${user:-${name}}" 2>/dev/null | /usr/bin/cut -d: -f4)
/usr/bin/install -o root -g wheel -m 0755 -d ${base} /usr/bin/install -o root -g ${gid} -m 0750 -d ${base}/login } |
