mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-28 16:34:34 +02:00
Update install and welcome to support running it
This commit is contained in:
1 parent
2eca92e34d
commit
bf5970b904
2 files changed
+35
-1
No files matched your search
@@ -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