Browse Source

fix #659

pull/673/head
Unknwon 10 years ago
parent
commit
515641d033
  1. 3
      cmd/fix.go

3
cmd/fix.go

@ -14,6 +14,7 @@ import (
"runtime"
"strings"
"github.com/Unknwon/com"
"github.com/codegangsta/cli"
"github.com/gogits/gogs/models"
@ -164,11 +165,13 @@ func runFixLocation(ctx *cli.Context) {
// Fix in authorized_keys file.
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 {
fmt.Println(err)
os.Exit(1)
}
}
// Fix position in gogs-repositories.
setting.NewConfigContext()

Loading…
Cancel
Save