Fix incorrect command.

This commit is contained in:
Zhang Huangbin 2016-07-28 11:44:55 +08:00
parent 45623d0aec
commit 7e3e094c89
2 changed files with 4 additions and 4 deletions

View File

@ -62,8 +62,8 @@ iRedMail-0.9.5 sets incorrect command for parameter `compresscmd` and
```
export _Z="$(which bzip2)"
export _UZ="$(which bunzip2)"
perl -pi -e 's# /bin/bzip2#$ENV{_Z}#g' /etc/logrotate.d/*
perl -pi -e 's# /bin/bunzip2#$ENV{_UZ}#g' /etc/logrotate.d/*
perl -pi -e 's# /bin/bzip2# $ENV{_Z}#g' /etc/logrotate.d/*
perl -pi -e 's# /bin/bunzip2# $ENV{_UZ}#g' /etc/logrotate.d/*
```
* On FreeBSD, OpenBSD: no fix required since FreeBSD/OpenBSD rotates log files

View File

@ -81,8 +81,8 @@ iRedMail-0.9.4 or earlier release, it's safe to ignore this step.</p>
</ul>
<pre><code>export _Z=&quot;$(which bzip2)&quot;
export _UZ=&quot;$(which bunzip2)&quot;
perl -pi -e 's# /bin/bzip2#$ENV{_Z}#g' /etc/logrotate.d/*
perl -pi -e 's# /bin/bunzip2#$ENV{_UZ}#g' /etc/logrotate.d/*
perl -pi -e 's# /bin/bzip2# $ENV{_Z}#g' /etc/logrotate.d/*
perl -pi -e 's# /bin/bunzip2# $ENV{_UZ}#g' /etc/logrotate.d/*
</code></pre>
<ul>