Laid a base for better hardware detection. Removed unnecessary packages. Removed unnecessary TUI.
This commit is contained in:
@@ -6,10 +6,10 @@ import sys
|
||||
### Variables -->
|
||||
SECRET_PATH = "/run/user/{}/numbus".format(os.getuid()) if os.path.exists("/run/user/{}".format(os.getuid())) else "../secrets"
|
||||
os.makedirs(SECRET_PATH, exist_ok=True)
|
||||
LOGS_DIR = "../web/logs/"
|
||||
PAGES_DIR = "../web/pages/"
|
||||
CONFIG_DIR = "../web/config/"
|
||||
SIGNALS_DIR = "../web/signal/"
|
||||
LOGS_DIR = "../logs/"
|
||||
PAGES_DIR = "../pages/"
|
||||
CONFIG_DIR = "../config/"
|
||||
SIGNALS_DIR = "../signal/"
|
||||
### <-- Variables
|
||||
|
||||
class BridgeHandler(http.server.SimpleHTTPRequestHandler):
|
||||
@@ -37,7 +37,7 @@ class BridgeHandler(http.server.SimpleHTTPRequestHandler):
|
||||
|
||||
if self.path == '/discovery':
|
||||
# Store secrets in memory-backed filesystem
|
||||
with open(os.path.join(SECRET_PATH, "live_settings.json"), "wb") as f:
|
||||
with open(os.path.join(SECRET_PATH, "live.yaml"), "wb") as f:
|
||||
f.write(post_data)
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
|
||||
Reference in New Issue
Block a user