Fix incorrect command.
This commit is contained in:
parent
45623d0aec
commit
7e3e094c89
|
@ -62,8 +62,8 @@ iRedMail-0.9.5 sets incorrect command for parameter `compresscmd` and
|
||||||
```
|
```
|
||||||
export _Z="$(which bzip2)"
|
export _Z="$(which bzip2)"
|
||||||
export _UZ="$(which bunzip2)"
|
export _UZ="$(which bunzip2)"
|
||||||
perl -pi -e 's# /bin/bzip2#$ENV{_Z}#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/*
|
perl -pi -e 's# /bin/bunzip2# $ENV{_UZ}#g' /etc/logrotate.d/*
|
||||||
```
|
```
|
||||||
|
|
||||||
* On FreeBSD, OpenBSD: no fix required since FreeBSD/OpenBSD rotates log files
|
* On FreeBSD, OpenBSD: no fix required since FreeBSD/OpenBSD rotates log files
|
||||||
|
|
|
@ -81,8 +81,8 @@ iRedMail-0.9.4 or earlier release, it's safe to ignore this step.</p>
|
||||||
</ul>
|
</ul>
|
||||||
<pre><code>export _Z="$(which bzip2)"
|
<pre><code>export _Z="$(which bzip2)"
|
||||||
export _UZ="$(which bunzip2)"
|
export _UZ="$(which bunzip2)"
|
||||||
perl -pi -e 's# /bin/bzip2#$ENV{_Z}#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/*
|
perl -pi -e 's# /bin/bunzip2# $ENV{_UZ}#g' /etc/logrotate.d/*
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue