install: updated ospf check to use sudo to account for sbin potentially not being on path

This commit is contained in:
Blake Harnden 2022-02-18 15:25:41 -08:00
parent cdde1c89ee
commit a7588a2188

View file

@ -210,7 +210,7 @@ def install_poetry(c: Context, dev: bool, local: bool, hide: bool) -> None:
def install_ospf_mdr(c: Context, os_info: OsInfo, hide: bool) -> None:
if c.run("which zebra", warn=True, hide=hide):
if c.run("sudo which zebra", warn=True, hide=hide):
print("\nquagga already installed, skipping ospf mdr")
return
if os_info.like == OsLike.DEBIAN: