mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 18:54:37 +01:00
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Fix #28300
This commit is contained in:
parent
b7e3adc66c
commit
5eaf91e919
1 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ import (
|
|||
"net"
|
||||
"net/url"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -117,7 +116,7 @@ func DBConnStr() (string, error) {
|
|||
if !EnableSQLite3 {
|
||||
return "", errors.New("this Gitea binary was not built with SQLite3 support")
|
||||
}
|
||||
if err := os.MkdirAll(path.Dir(Database.Path), os.ModePerm); err != nil {
|
||||
if err := os.MkdirAll(filepath.Dir(Database.Path), os.ModePerm); err != nil {
|
||||
return "", fmt.Errorf("Failed to create directories: %w", err)
|
||||
}
|
||||
journalMode := ""
|
||||
|
|
Loading…
Reference in a new issue