summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-11-06 11:47:29 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-11-06 11:47:29 +0000
commit515369fa2d90d4cb45dabf76254e29b9ae548b3b (patch)
tree36572c7e3594aa327b2ebf78453c2dd042eca0b8
parentfbbda3e78dba2204df5f65a06383139d510573fb (diff)
downloadgitano-515369fa2d90d4cb45dabf76254e29b9ae548b3b.tar.bz2
Of course, we might rename the orig user too
-rw-r--r--lib/gitano/admincommand.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitano/admincommand.lua b/lib/gitano/admincommand.lua
index eaa98fd..36d86b9 100644
--- a/lib/gitano/admincommand.lua
+++ b/lib/gitano/admincommand.lua
@@ -293,6 +293,9 @@ local function builtin_user_run(conf, _, cmdline, env)
if env.GITANO_USER == oldusername then
env.GITANO_USER = newusername
end
+ if env.GITANO_ORIG_USER == oldusername then
+ env.GITANO_ORIG_USER = newusername
+ end
end
end
if reason then