zz-zfs fix for Ubuntu

Stephen Sewell <[email protected]> Sun, 10 May 2020 15:23:03 -0500
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <CAHodahFRq_s6kbE8A9JayCKg53pb9_X2S2eUAZB18Y7UEZ8B_w@mail.gmail.com>
--===============4543979619126991006==
Content-Type: multipart/alternative; boundary="000000000000148b3e05a5510020"

--000000000000148b3e05a5510020
Content-Type: text/plain; charset="UTF-8"

Hey guys,

My logwatch installation on Ubuntu wasn't sending me zfs information and I
finally tracked down the root cause yesterday.

In zz-zfs the pathto_zpool and pathto_zfs environment variables default to
/usr/sbin unless they're overridden, but Ubuntu keeps its zfs utilities in
/sbin.

It seems like all it really needs to do is something like this.

if      ( envDefined  ) useEnv()
else if ( toolsInSbin ) useSbin()
else                    useUsrSbin()

If you have any contributor guidelines, I'd be happy to fix it for you.

--000000000000148b3e05a5510020
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hey guys,<div><br></div><div>My logwatch installation on U=
buntu wasn&#39;t sending me zfs information and I finally tracked down the =
root cause yesterday.</div><div><br></div><div>In zz-zfs the pathto_zpool a=
nd pathto_zfs environment variables default to /usr/sbin unless they&#39;re=
 overridden, but Ubuntu keeps its zfs utilities in /sbin.</div><div><br></d=
iv><div>It seems like all it really needs to do is something like this.</di=
v><div><font face=3D"monospace"><br></font></div><div><font face=3D"monospa=
ce">if=C2=A0 =C2=A0 =C2=A0 ( envDefined=C2=A0 ) useEnv()</font></div><div><=
font face=3D"monospace">else if ( toolsInSbin ) useSbin()</font></div><div>=
<font face=3D"monospace">else=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 useUsrSbin()</font></div><div><font face=3D"monosp=
ace"><br></font></div><div><font face=3D"arial, sans-serif">If you have any=
 contributor guidelines, I&#39;d be happy to fix it for you.</font></div></=
div>

--000000000000148b3e05a5510020--


--===============4543979619126991006==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4543979619126991006==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel

--===============4543979619126991006==--