| |
@@ -756,6 +756,7 @@
|
| |
if opts.install:
|
| |
ret, output = run(['/bin/cygrunsrv', '--install', prog,
|
| |
'--path', sys.executable, '--args', os.path.abspath(prog),
|
| |
+ '--user', 'Administrator',
|
| |
'--type', 'auto', '--dep', 'Dhcp',
|
| |
'--disp', 'Koji Windows Daemon',
|
| |
'--desc', 'Runs Koji tasks assigned to a VM'],
|
| |
In some newer Windows Servers/Cygwin, the default user
SYSTEM
can't be automatically translated toAdministrator
. In this case, the kojikamid service will be invoked by user:SYSTEM
and corresponding$HOME
and other relevant things are wrong.For example, for
ssh
, ".ssh" dir will be/home/SYSTEM/.ssh
rather than/home/Administrator/.ssh
fixes #4390