models: code fix on #818
This commit is contained in:
parent
cd6376f093
commit
0a2068d7fb
3 changed files with 37 additions and 21 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue