added more messages to ospf mdr invoke install
This commit is contained in:
parent
7dd2b66680
commit
51200cf930
1 changed files with 4 additions and 1 deletions
5
tasks.py
5
tasks.py
|
@ -101,15 +101,17 @@ def install_ospf_mdr(c: Context, os_info: OsInfo, hide: bool) -> None:
|
||||||
if c.run("which zebra", warn=True, hide=hide):
|
if c.run("which zebra", warn=True, hide=hide):
|
||||||
print("quagga already installed, skipping ospf mdr")
|
print("quagga already installed, skipping ospf mdr")
|
||||||
return
|
return
|
||||||
print("installing ospf mdr...")
|
print("installing ospf mdr dependencies...")
|
||||||
if os_info.like == OsLike.DEBIAN:
|
if os_info.like == OsLike.DEBIAN:
|
||||||
c.run("sudo apt install -y libtool gawk libreadline-dev", hide=hide)
|
c.run("sudo apt install -y libtool gawk libreadline-dev", hide=hide)
|
||||||
|
print("cloning ospf mdr...")
|
||||||
clone_dir = "/tmp/ospf-mdr"
|
clone_dir = "/tmp/ospf-mdr"
|
||||||
c.run(
|
c.run(
|
||||||
f"git clone https://github.com/USNavalResearchLaboratory/ospf-mdr {clone_dir}",
|
f"git clone https://github.com/USNavalResearchLaboratory/ospf-mdr {clone_dir}",
|
||||||
hide=hide
|
hide=hide
|
||||||
)
|
)
|
||||||
with c.cd(clone_dir):
|
with c.cd(clone_dir):
|
||||||
|
print("building ospf mdr...")
|
||||||
c.run("./bootstrap.sh", hide=hide)
|
c.run("./bootstrap.sh", hide=hide)
|
||||||
c.run(
|
c.run(
|
||||||
"./configure --disable-doc --enable-user=root --enable-group=root "
|
"./configure --disable-doc --enable-user=root --enable-group=root "
|
||||||
|
@ -118,6 +120,7 @@ def install_ospf_mdr(c: Context, os_info: OsInfo, hide: bool) -> None:
|
||||||
hide=hide
|
hide=hide
|
||||||
)
|
)
|
||||||
c.run("make -j", hide=hide)
|
c.run("make -j", hide=hide)
|
||||||
|
print("installing ospf mdr...")
|
||||||
c.run("sudo make install", hide=hide)
|
c.run("sudo make install", hide=hide)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue