point to new location of scripts files

feature/enhanced-ticket-view
vilmibm 2019-01-15 03:47:18 +00:00
parent f095c5ec7f
commit ca1500d265
1 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,7 @@ class Townie(User):
fp.seek(0) fp.seek(0)
error = _guarded_run(['sudo', error = _guarded_run(['sudo',
'--user={}'.format(self.username), '--user={}'.format(self.username),
'/opt/bin/create_keyfile.py', '/town/src/tildetown-admin/scripts/create_keyfile.py',
self.username], self.username],
stdin=fp) stdin=fp)
if error: if error:
@ -155,9 +155,10 @@ class Townie(User):
def rename_on_disk(self, old_username): def rename_on_disk(self, old_username):
"""Assuming that this instance has a new name set, renames this user on """Assuming that this instance has a new name set, renames this user on
disk with self.username.""" disk with self.username."""
# TODO use systemd thing to end their session
error = _guarded_run([ error = _guarded_run([
'sudo', 'sudo',
'/tilde/bin/rename_user.py', '/town/src/tildetown-admin/scripts/rename_user.py',
old_username, old_username,
self.username]) self.username])
if error: if error: