1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 22:47:16 +00:00

Log update-ssh-keys to stdout/stderr

This commit is contained in:
Darren Shepherd 2015-02-23 11:58:43 -07:00
parent 123b81886b
commit 5d2d23d988

View File

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