models: code fix on #818

This commit is contained in:
Unknwon 2015-02-01 17:21:56 -05:00
parent cd6376f093
commit 0a2068d7fb
3 changed files with 37 additions and 21 deletions

View file

@ -164,7 +164,7 @@ func runFixLocation(ctx *cli.Context) {
fmt.Scanln()
// Fix in authorized_keys file.
sshPath := path.Join(models.SshPath, "authorized_keys")
sshPath := path.Join(models.SSHPath, "authorized_keys")
if com.IsFile(sshPath) {
fmt.Printf("Fixing pathes in file: %s\n", sshPath)
if err := rewriteAuthorizedKeys(sshPath, oldPath, execPath); err != nil {