From 23c7322cacacd10c11b27bf0f8e1e1fbbeeffbbc Mon Sep 17 00:00:00 2001 From: nate Date: Sun, 18 Feb 2018 00:10:23 -0800 Subject: [PATCH] methodize writing keyfile --- ttadmin/users/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ttadmin/users/models.py b/ttadmin/users/models.py index 6f118ee..e1f509b 100644 --- a/ttadmin/users/models.py +++ b/ttadmin/users/models.py @@ -116,6 +116,9 @@ class Townie(User): logging.error(error) return + self.write_authorized_keys() + + def write_authorized_keys(self): # Write out authorized_keys file # Why is this a call out to a python script? There's no secure way with # sudoers to allow this code to write to a file; if this code was to be