Development
This commit is contained in:
parent
1c8fbc60c0
commit
62fe75d7fd
1 changed files with 10 additions and 6 deletions
|
|
@ -503,6 +503,12 @@ def main():
|
||||||
print(" be edited manually.")
|
print(" be edited manually.")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
next_step = (
|
||||||
|
f"\n Next step: use the web dashboard to configure your network, or\n"
|
||||||
|
f" configure {SCRIPT_DIR}/core.json manually and then run:\n"
|
||||||
|
f" sudo python3 {SCRIPT_DIR}/core.py --apply"
|
||||||
|
)
|
||||||
|
|
||||||
dash_installed = _dash_already_configured()
|
dash_installed = _dash_already_configured()
|
||||||
if dash_installed:
|
if dash_installed:
|
||||||
want_dashboard = prompt_yn("Web dashboard is already installed. Rebuild Docker image?", default="y")
|
want_dashboard = prompt_yn("Web dashboard is already installed. Rebuild Docker image?", default="y")
|
||||||
|
|
@ -512,10 +518,9 @@ def main():
|
||||||
if not want_dashboard:
|
if not want_dashboard:
|
||||||
print()
|
print()
|
||||||
print(" Skipping dashboard setup.")
|
print(" Skipping dashboard setup.")
|
||||||
print(" Edit ~/routlin/core.json manually, then run:")
|
|
||||||
print(" sudo python3 ~/routlin/core.py --apply")
|
|
||||||
print()
|
print()
|
||||||
print("Done.")
|
print("Done.")
|
||||||
|
print(next_step)
|
||||||
return
|
return
|
||||||
|
|
||||||
reuse_config = False
|
reuse_config = False
|
||||||
|
|
@ -549,6 +554,7 @@ def main():
|
||||||
print(f" http://{lan}:{FLASK_PORT}/")
|
print(f" http://{lan}:{FLASK_PORT}/")
|
||||||
print()
|
print()
|
||||||
print("Done.")
|
print("Done.")
|
||||||
|
print(next_step)
|
||||||
return
|
return
|
||||||
|
|
||||||
print(" External access lets you reach the dashboard from outside")
|
print(" External access lets you reach the dashboard from outside")
|
||||||
|
|
@ -564,6 +570,7 @@ def main():
|
||||||
print(f" http://{lan}:{FLASK_PORT}/")
|
print(f" http://{lan}:{FLASK_PORT}/")
|
||||||
print()
|
print()
|
||||||
print("Done.")
|
print("Done.")
|
||||||
|
print(next_step)
|
||||||
return
|
return
|
||||||
|
|
||||||
# -- Caddy -----------------------------------------------------
|
# -- Caddy -----------------------------------------------------
|
||||||
|
|
@ -599,10 +606,7 @@ def main():
|
||||||
print(" and that port 80 and 443 are forwarded to this machine.")
|
print(" and that port 80 and 443 are forwarded to this machine.")
|
||||||
print()
|
print()
|
||||||
print("Done.")
|
print("Done.")
|
||||||
print()
|
print(next_step)
|
||||||
print(" Next step: use the web dashboard to configure your network, or")
|
|
||||||
print(f" configure {SCRIPT_DIR}/core.json manually and then run:")
|
|
||||||
print(f" sudo python3 {SCRIPT_DIR}/core.py --apply")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue