mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Merge branch 'master' of github.com:webp-sh/webp_server_go
This commit is contained in:
commit
50ddf19790
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user