Merge branch 'master' of github.com:webp-sh/webp_server_go

This commit is contained in:
n0vad3v 2020-03-05 21:13:13 +08:00
commit 50ddf19790

View File

@ -80,6 +80,16 @@ func init() {
}
func main() {
// process cli params
if dumpConfig {
fmt.Println(sampleConfig)
os.Exit(0)
}
if dumpSystemd {
fmt.Println(sampleSystemd)
os.Exit(0)
}
go autoUpdate()
config := loadConfig(configPath)
@ -95,16 +105,6 @@ func main() {
ExhaustPath = config.ExhaustPath
}
// process cli params
if dumpConfig {
fmt.Println(sampleConfig)
os.Exit(0)
}
if dumpSystemd {
fmt.Println(sampleSystemd)
os.Exit(0)
}
if prefetch {
go PrefetchImages(confImgPath, ExhaustPath, QUALITY)
}