Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jun 8, 2021
1 parent f1d87e3 commit a2fc083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
print("Fatal error: could not find ABI. Exiting")
exit(-6)

RESULTS_PATH = "/tmp/chains.json"
RESULTS_PATH = "/tmp/mainnet.json"

PORTS_PER_SCHAIN = 64

Expand Down
4 changes: 3 additions & 1 deletion periodic_config_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TMP_CONFIG_FILE = "/tmp/tmp.config"
CERT_FILE = "/data/server.crt"
KEY_FILE = "/data/server.key"
RESULTS_PATH = "/tmp/chains.json"
RESULTS_PATH = "/tmp/mainnet.json"
PROXY_FULL_HOST_NAME = os.environ.get("PROXY_FULL_HOST_NAME")

if PROXY_FULL_HOST_NAME is None:
Expand Down Expand Up @@ -129,6 +129,8 @@ def main():
print("Updating chain info ...")
subprocess.check_call(["/bin/bash", "-c", "rm -f /tmp/*"])
subprocess.check_call(["python3", "/etc/endpoints.py"])
subprocess.check_call(["/bin/bash", "-c", "mkdirs /usr/share/nginx/www"])
subprocess.check_call(["/bin/bash", "-c", "cp -f /tmp/mainnet/.json /usr/share/nginx/www"])

if not os.path.exists(RESULTS_PATH):
print("Fatal error: Chains file does not exist. Exiting ...")
Expand Down

0 comments on commit a2fc083

Please sign in to comment.