This commit is contained in:
Andreas Stephanides
2017-04-18 18:54:09 +02:00
parent 179381fa8c
commit f683cc6661
2 changed files with 3 additions and 1 deletions

View File

@@ -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

2
cmds.cfg Normal file
View File

@@ -0,0 +1,2 @@
"ls": ["ls", "-lha"],
"syslog":["tail", "-n 200", "/var/log/syslog"]