token-validator: also link id_rsa and sshpiper_upstream

This commit is contained in:
nemunaire 2020-02-27 15:26:27 +01:00
parent d705fa7326
commit c08853fd36

View file

@ -241,6 +241,8 @@ func receiveKey(r *http.Request, ps httprouter.Params, body []byte) (interface{}
defer file.Close()
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"))
}
}