1
0
mirror of https://github.com/rancher/os.git synced 2025-09-03 07:44:21 +00:00

Rename files

This commit is contained in:
Darren Shepherd
2015-04-10 09:32:14 -07:00
parent 0abe9f995a
commit e0820d240f
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package cloudinit
import (
"os"
"os/exec"
log "github.com/Sirupsen/logrus"
)
func authorizeSSHKeys(user string, authorizedKeys []string, name string) {
for _, authorizedKey := range authorizedKeys {
cmd := exec.Command("update-ssh-keys", user, authorizedKey)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
log.Fatal(err.Error())
}
}
}