|
@@ -38,7 +38,7 @@ var Serv = cli.Command{
|
|
}
|
|
}
|
|
|
|
|
|
func fail(userMessage, logMessage string, args ...interface{}) {
|
|
func fail(userMessage, logMessage string, args ...interface{}) {
|
|
- fmt.Fprintln(os.Stderr, "Gogs:", userMessage)
|
|
|
|
|
|
+ fmt.Fprintln(os.Stderr, "Gin:", userMessage)
|
|
|
|
|
|
if len(logMessage) > 0 {
|
|
if len(logMessage) > 0 {
|
|
if !setting.ProdMode {
|
|
if !setting.ProdMode {
|
|
@@ -137,7 +137,7 @@ func runServ(c *cli.Context) error {
|
|
setup(c, "serv.log", true)
|
|
setup(c, "serv.log", true)
|
|
|
|
|
|
if setting.SSH.Disabled {
|
|
if setting.SSH.Disabled {
|
|
- println("Gogs: SSH has been disabled")
|
|
|
|
|
|
+ println("Gins: SSH has been disabled")
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
@@ -148,8 +148,7 @@ func runServ(c *cli.Context) error {
|
|
sshCmd := strings.Replace(os.Getenv("SSH_ORIGINAL_COMMAND"), "'", "", -1)
|
|
sshCmd := strings.Replace(os.Getenv("SSH_ORIGINAL_COMMAND"), "'", "", -1)
|
|
log.Info("SSH commadn:%s", sshCmd)
|
|
log.Info("SSH commadn:%s", sshCmd)
|
|
if len(sshCmd) == 0 {
|
|
if len(sshCmd) == 0 {
|
|
- println("Hi there, You've successfully authenticated, but Gogs does not provide shell access.")
|
|
|
|
- println("If this is unexpected, please log in with password and setup Gogs under another user.")
|
|
|
|
|
|
+ println("Hi there, You've successfully authenticated, but Gin does not provide shell access.")
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|