Remove unnecessary code in setup function in main.py

This commit is contained in:
Théophile Diot 2024-05-02 10:24:03 +02:00
parent 417e93f04a
commit 59b451b163
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -495,9 +495,6 @@ def check():
@app.route("/setup", methods=["GET", "POST"])
def setup():
if current_user.is_authenticated: # type: ignore
return redirect(url_for("home"))
db_config = app.config["CONFIG"].get_config(methods=False)
for server_name in db_config["SERVER_NAME"].split(" "):
@ -960,8 +957,6 @@ def services():
error = 0
print(variables, flush=True)
# Reload instances
manage_bunkerweb(
"services",