token-validator: also link id_rsa and sshpiper_upstream
This commit is contained in:
parent
d705fa7326
commit
c08853fd36
1 changed files with 2 additions and 0 deletions
|
|
@ -241,6 +241,8 @@ func receiveKey(r *http.Request, ps httprouter.Params, body []byte) (interface{}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
||||||
std.dumpAuthorizedKeysFile(file)
|
std.dumpAuthorizedKeysFile(file)
|
||||||
|
os.Symlink(path.Join(SshPiperLocation, "sshpiper_upstream"), path.Join(SshPiperLocation, std.Login, "sshpiper_upstream"))
|
||||||
|
os.Symlink(path.Join(SshPiperLocation, "id_rsa"), path.Join(SshPiperLocation, std.Login, "id_rsa"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue