Skip to content

Commit

Permalink
fix(migrate): copy pub key
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 2, 2023
1 parent b9cc769 commit 91e9f37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/soft/migrate_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ var (
return fmt.Errorf("failed to copy ssh key: %w", err)
}

if err := copyFile(keyPath+".pub", filepath.Join(cfg.DataPath, "ssh", filepath.Base(keyPath))+".pub"); err != nil {
log.Errorf("failed to copy ssh key: %s", err)
}

cfg.SSH.KeyPath = filepath.Join("ssh", filepath.Base(keyPath))
}

Expand Down

0 comments on commit 91e9f37

Please sign in to comment.