diff options
Diffstat (limited to 'mail/dovecot/files/dovecot.sh.sample')
-rw-r--r-- | mail/dovecot/files/dovecot.sh.sample | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/dovecot/files/dovecot.sh.sample b/mail/dovecot/files/dovecot.sh.sample index 625021fa6def..e7c235c8d43a 100644 --- a/mail/dovecot/files/dovecot.sh.sample +++ b/mail/dovecot/files/dovecot.sh.sample @@ -1,6 +1,6 @@ #!/bin/sh -if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then +if ! PREFIX=$(expr $(realpath $(dirname $0)) : "\(.*\)/etc/rc\.d\$"); then echo "$0: Cannot determine the PREFIX" >&2 exit 1 fi |