admin: Create the SYNC directory if it doesn't exist
This commit is contained in:
parent
0ab321bb87
commit
4b03f0befd
@ -186,7 +186,11 @@ func main() {
|
|||||||
}
|
}
|
||||||
log.Println("Serving pages from memory.")
|
log.Println("Serving pages from memory.")
|
||||||
staticFS = http.FS(sub)
|
staticFS = http.FS(sub)
|
||||||
|
|
||||||
sync.DeepReportPath = path.Join("SYNC", sync.DeepReportPath)
|
sync.DeepReportPath = path.Join("SYNC", sync.DeepReportPath)
|
||||||
|
if _, err := os.Stat("SYNC"); os.IsNotExist(err) {
|
||||||
|
os.MkdirAll("SYNC", 0751)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if fic.FilesDir, err = filepath.Abs(fic.FilesDir); err != nil {
|
if fic.FilesDir, err = filepath.Abs(fic.FilesDir); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user