mirror of
https://github.com/go-gitea/gitea
synced 2024-10-31 08:43:34 +01:00
fix check template version
This commit is contained in:
parent
03011e31fe
commit
cc0d963f75
@ -69,7 +69,7 @@ type VerChecker struct {
|
|||||||
// checkVersion checks if binary matches the version of templates files.
|
// checkVersion checks if binary matches the version of templates files.
|
||||||
func checkVersion() {
|
func checkVersion() {
|
||||||
// Templates.
|
// Templates.
|
||||||
data, err := ioutil.ReadFile(path.Join(setting.StaticRootPath, "templates/.VERSION"))
|
data, err := ioutil.ReadFile(setting.StaticRootPath + "/templates/.VERSION")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err)
|
log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err)
|
||||||
}
|
}
|
||||||
|
2
gogs.go
2
gogs.go
@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.6.3.0801 Beta"
|
const APP_VER = "0.6.3.0802 Beta"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
@ -1 +1 @@
|
|||||||
0.6.3.0801 Beta
|
0.6.3.0802 Beta
|
Loading…
Reference in New Issue
Block a user