my eye

Change gaea to admin on machine page

Committed add174

--- a/webint_sites/__init__.py
+++ b/webint_sites/__init__.py

         #     domains = None
         # else:
         #     domains = host.dynadot.Client(token).list_domain()
-        root_ssh = web.host.Machine(details["ip_address"], "root", "gaea_key").run
-        gaea_ssh = web.host.Machine(details["ip_address"], "root", "gaea_key").run
-        return app.view.machine(details, root_ssh, gaea_ssh)
+        root_ssh = web.host.Machine(details["ip_address"], "root", "admin_key").run
+        admin_ssh = web.host.Machine(details["ip_address"], "admin", "admin_key").run
+        return app.view.machine(details, root_ssh, admin_ssh)
 
 
 @app.control("machines/{machine}/update")

--- a/webint_sites/templates/machine.html
+++ b/webint_sites/templates/machine.html

-$def with (machine, root_ssh, gaea_ssh)
+$def with (machine, root_ssh, admin_ssh)
 $var breadcrumbs = ("machines", "Machines")
 $var title: $machine["name"]
 
             output += "\n"
         return output.rpartition("\n")[0]
 
-    def get_gaea_output(cmd):
-        output = gaea_ssh(cmd).stdout
+    def get_admin_output(cmd):
+        output = admin_ssh(cmd).stdout
         if "\n" not in output:
             output += "\n"
         return output.rpartition("\n")[0]
 $def render(cmd):
     <pre style=font-size:.8em>$get_output(cmd)</pre>
 
-$def gaea_render(cmd):
-    <pre style=font-size:.8em>$get_gaea_output(cmd)</pre>
+$def admin_render(cmd):
+    <pre style=font-size:.8em>$get_admin_output(cmd)</pre>
 
 <h3>Application</h3>
-$:render("/home/gaea/runinenv /home/gaea/app python -V")
-$:render("du -sh /home/gaea/app")
+$:render("/home/admin/runinenv /home/admin/app python -V")
+$:render("du -sh /home/admin/app")
 <pre style=font-size:.8em>\
-$for line in get_output("ls -lthr /home/gaea/app/run | cut -d' ' -f5-").splitlines():
+$for line in get_output("ls -lthr /home/admin/app/run | cut -d' ' -f5-").splitlines():
     $if not line: $continue
     $ size, month, day, yeartime, path = line.split()
     $month $day $yeartime \
 $:render_status("systemctl --no-pager show nginx")
 
 <h3>Tmux</h3>
-$:gaea_render("tmux list-sessions")
-$:gaea_render("tmux list-windows -t 0")
+$:admin_render("tmux list-sessions")
+$:admin_render("tmux list-windows -t 0")
 
 <h3>System</h3>
 $:render("df -ht ext4")