|
|
@ -171,9 +171,9 @@ func setAppHelpTemplates() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func adjustHelpTemplate(originalTemplate string) string {
|
|
|
|
func adjustHelpTemplate(originalTemplate string) string {
|
|
|
|
overrided := ""
|
|
|
|
overridden := ""
|
|
|
|
if _, ok := os.LookupEnv("GITEA_CUSTOM"); ok {
|
|
|
|
if _, ok := os.LookupEnv("GITEA_CUSTOM"); ok {
|
|
|
|
overrided = "(GITEA_CUSTOM)"
|
|
|
|
overridden = "(GITEA_CUSTOM)"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return fmt.Sprintf(`%s
|
|
|
|
return fmt.Sprintf(`%s
|
|
|
@ -183,7 +183,7 @@ DEFAULT CONFIGURATION:
|
|
|
|
AppPath: %s
|
|
|
|
AppPath: %s
|
|
|
|
AppWorkPath: %s
|
|
|
|
AppWorkPath: %s
|
|
|
|
|
|
|
|
|
|
|
|
`, originalTemplate, setting.CustomPath, overrided, setting.CustomConf, setting.AppPath, setting.AppWorkPath)
|
|
|
|
`, originalTemplate, setting.CustomPath, overridden, setting.CustomConf, setting.AppPath, setting.AppWorkPath)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func formatBuiltWith() string {
|
|
|
|
func formatBuiltWith() string {
|
|
|
|