(repo *git.Repository, user string, pubKey *models.PublicKey)
| 18 | } |
| 19 | |
| 20 | func (c *Config) ensureAdminUser(repo *git.Repository, user string, pubKey *models.PublicKey) error { |
| 21 | return repo.UpdateFile("config.yml", func(data []byte) ([]byte, error) { |
| 22 | return ensureAdminUser(data, user, pubKey.MarshalAuthorizedKey()) |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | func (c *Config) ensureAdminEd25519Key(repo *git.Repository) error { |
| 27 | return repo.UpdateFile("ssh/id_ed25519", func(data []byte) ([]byte, error) { |
no test coverage detected