mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
Add linx-cleanup tool
This doesn't completely fix #116, but it makes setting up a cron job to do cleanup much more pleasant.
This commit is contained in:
parent
d8568e141f
commit
b7fadd9676
15 changed files with 216 additions and 97 deletions
|
|
@ -16,6 +16,7 @@ import (
|
|||
"github.com/GeertJohan/go.rice"
|
||||
"github.com/andreimarcu/linx-server/backends"
|
||||
"github.com/andreimarcu/linx-server/backends/localfs"
|
||||
"github.com/andreimarcu/linx-server/backends/metajson"
|
||||
"github.com/flosch/pongo2"
|
||||
"github.com/vharitonsky/iniflags"
|
||||
"github.com/zenazn/goji/graceful"
|
||||
|
|
@ -65,7 +66,8 @@ var staticBox *rice.Box
|
|||
var timeStarted time.Time
|
||||
var timeStartedStr string
|
||||
var remoteAuthKeys []string
|
||||
var metaBackend backends.StorageBackend
|
||||
var metaStorageBackend backends.MetaStorageBackend
|
||||
var metaBackend backends.MetaBackend
|
||||
var fileBackend backends.StorageBackend
|
||||
|
||||
func setup() *web.Mux {
|
||||
|
|
@ -124,7 +126,8 @@ func setup() *web.Mux {
|
|||
Config.sitePath = "/"
|
||||
}
|
||||
|
||||
metaBackend = localfs.NewLocalfsBackend(Config.metaDir)
|
||||
metaStorageBackend = localfs.NewLocalfsBackend(Config.metaDir)
|
||||
metaBackend = metajson.NewMetaJSONBackend(metaStorageBackend)
|
||||
fileBackend = localfs.NewLocalfsBackend(Config.filesDir)
|
||||
|
||||
// Template setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue