projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15306: Fixes the bug.
[arvados.git]
/
services
/
login-sync
/
bin
/
arvados-login-sync
diff --git
a/services/login-sync/bin/arvados-login-sync
b/services/login-sync/bin/arvados-login-sync
index eb680043e4b50bf3f44bbd28a97bd551a39c12de..e00495c04db7db621ba0bf377cbe62072b82feba 100755
(executable)
--- a/
services/login-sync/bin/arvados-login-sync
+++ b/
services/login-sync/bin/arvados-login-sync
@@
-108,7
+108,7
@@
begin
"-G", groups.join(","),
l[:username],
out: devnull)
"-G", groups.join(","),
l[:username],
out: devnull)
- STDERR.puts "Account creation failed for #{l[:username]}:
$?
"
+ STDERR.puts "Account creation failed for #{l[:username]}:
#{$?}
"
next
end
begin
next
end
begin
@@
-121,13
+121,13
@@
begin
@homedir = pwnam[l[:username]].dir
userdotssh = File.join(@homedir, ".ssh")
@homedir = pwnam[l[:username]].dir
userdotssh = File.join(@homedir, ".ssh")
- Dir.mkdir(userdotssh) if !File.exist
s
?(userdotssh)
+ Dir.mkdir(userdotssh) if !File.exist?(userdotssh)
newkeys = "###\n###\n" + keys[l[:username]].join("\n") + "\n###\n###\n"
keysfile = File.join(userdotssh, "authorized_keys")
newkeys = "###\n###\n" + keys[l[:username]].join("\n") + "\n###\n###\n"
keysfile = File.join(userdotssh, "authorized_keys")
- if File.exist
s
?(keysfile)
+ if File.exist?(keysfile)
oldkeys = IO::read(keysfile)
else
oldkeys = ""
oldkeys = IO::read(keysfile)
else
oldkeys = ""