install: updated ospf check to use sudo to account for sbin potentially not being on path
This commit is contained in:
parent
cdde1c89ee
commit
a7588a2188
1 changed files with 1 additions and 1 deletions
2
tasks.py
2
tasks.py
|
@ -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:
|
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")
|
print("\nquagga already installed, skipping ospf mdr")
|
||||||
return
|
return
|
||||||
if os_info.like == OsLike.DEBIAN:
|
if os_info.like == OsLike.DEBIAN:
|
||||||
|
|
Loading…
Reference in a new issue