Vova Tkach 6 years ago
parent
commit
0f73a9e6d0
2 changed files with 3 additions and 4 deletions
  1. 2 3
      hosts/localhost/template/robots.txt
  2. 1 1
      modules/module_index_act_mysql_setup.go

+ 2 - 3
hosts/localhost/template/robots.txt

@@ -1,3 +1,2 @@
-User-agent: *
-Disallow: /
-
+User-agent: *
+Disallow: /

+ 1 - 1
modules/module_index_act_mysql_setup.go

@@ -376,7 +376,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		f, err := os.Create(wrap.DTemplate + string(os.PathSeparator) + "robots.txt")
 		f, err := os.Create(wrap.DTemplate + string(os.PathSeparator) + "robots.txt")
 		if err == nil {
 		if err == nil {
 			defer f.Close()
 			defer f.Close()
-			if _, err = f.WriteString("User-agent: *\nDisallow: /\n\n"); err != nil {
+			if _, err = f.WriteString("User-agent: *\nDisallow: /\n"); err != nil {
 				wrap.MsgError(err.Error())
 				wrap.MsgError(err.Error())
 				return
 				return
 			}
 			}