mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 21:52:01 +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() {
|
func main() {
|
||||||
|
// process cli params
|
||||||
|
if dumpConfig {
|
||||||
|
fmt.Println(sampleConfig)
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
|
if dumpSystemd {
|
||||||
|
fmt.Println(sampleSystemd)
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
go autoUpdate()
|
go autoUpdate()
|
||||||
config := loadConfig(configPath)
|
config := loadConfig(configPath)
|
||||||
|
|
||||||
@ -95,16 +105,6 @@ func main() {
|
|||||||
ExhaustPath = config.ExhaustPath
|
ExhaustPath = config.ExhaustPath
|
||||||
}
|
}
|
||||||
|
|
||||||
// process cli params
|
|
||||||
if dumpConfig {
|
|
||||||
fmt.Println(sampleConfig)
|
|
||||||
os.Exit(0)
|
|
||||||
}
|
|
||||||
if dumpSystemd {
|
|
||||||
fmt.Println(sampleSystemd)
|
|
||||||
os.Exit(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
if prefetch {
|
if prefetch {
|
||||||
go PrefetchImages(confImgPath, ExhaustPath, QUALITY)
|
go PrefetchImages(confImgPath, ExhaustPath, QUALITY)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user