mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 23:08:18 +00:00
Update install and welcome to support running it
This commit is contained in:
@ -57,6 +57,10 @@ def get_ip():
|
||||
|
||||
return ip_addr
|
||||
|
||||
def repair_remote_install():
|
||||
ip_addr = get_ip()
|
||||
subprocess.run(["sed", "-i", f"'s/host = 0.0.0.0/host = {ip_addr}/'", "/etc/gns3/gns3_server.conf"],capture_output=False)
|
||||
|
||||
|
||||
def get_config():
|
||||
"""
|
||||
@ -449,5 +453,7 @@ try:
|
||||
edit_proxy()
|
||||
elif tag == "Shrink":
|
||||
shrink_disk()
|
||||
elif tag == "Repair":
|
||||
repair_remote_install()
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
Reference in New Issue
Block a user