diff --git a/__init__.py b/__init__.py index 2bd6a29..fa4b04e 100644 --- a/__init__.py +++ b/__init__.py @@ -32,4 +32,4 @@ def cm(cmd): c=cmds[cmd] return run_cmd(c) else: - return render_template("index.html", out="Command not found"), 404 + return render_template("index.html", out="Command not found",keys=keys, title=cfg.title.decode("utf8")), 404 diff --git a/cmds.cfg b/cmds.cfg index e2f3c95..be8f3f0 100644 --- a/cmds.cfg +++ b/cmds.cfg @@ -2,3 +2,4 @@ restart: ["supervisorctl", "restart", "management"] status:["supervisorctl", "status"] ls: ["ls", "-lha"] upd: ["./update_mgm", ""] +