Fix a potential bug.

This commit is contained in:
lishuang 2022-03-20 17:15:16 +08:00
parent 0c825c65d4
commit 3be2e354c4
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# use golang 1.12
FROM golang:1.12
# use golang 1.17
FROM golang:1.17
# maintainer. Author's name and email.
MAINTAINER eyeblue "eyebluecn@126.com"
@ -17,7 +17,7 @@ VOLUME /data/build/matter
ENV GOPROXY=https://goproxy.cn
# prepare the config file
RUN go build -mod=readonly \
RUN go build \
&& cp -r /data/tank /data/build
# use 6010 as default.

View File

@ -202,6 +202,7 @@ func (this *TankConfig) SqliteFolder() string {
} else {
this.sqliteFolder = util.UniformPath(this.item.SqliteFolder)
}
util.MakeDirAll(this.matterPath)
}
return this.sqliteFolder