Skip to content

Commit 305117f

Browse files
committed
fix CreateLocalConfigFile
1 parent eacd508 commit 305117f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mytoninstaller/mytoninstaller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ def PrintLiteServerConfig(local, args):
195195
def CreateLocalConfigFile(local, args):
196196
initBlock = GetInitBlock()
197197
initBlock_b64 = dict2b64(initBlock)
198-
args = ["python3", "-m", "mytoninstaller", "-u", local.buffer.user, "-e", "clc", "-i", initBlock_b64]
198+
user = local.buffer.user or os.environ.get("USER", "root")
199+
args = ["python3", "-m", "mytoninstaller", "-u", user, "-e", "clc", "-i", initBlock_b64]
199200
run_as_root(args)
200201
#end define
201202

0 commit comments

Comments
 (0)