Bugfix folder not found
All checks were successful
release-tag / release-image (push) Successful in 1m40s

This commit is contained in:
2025-06-16 22:47:16 +02:00
parent d53767ae3c
commit d5346b75dc
2 changed files with 6 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ services:
networks:
- flod_nw
restart: unless-stopped
volumes:
- importer-lists:/lists
redis:
image: redis:7-alpine
@@ -68,3 +70,4 @@ networks:
volumes:
redis-data:
importer-lists:

View File

@@ -707,6 +707,9 @@ func fetchAndSave(client *http.Client, t target, outDir string) error {
func importBlocklists() error {
client := &http.Client{Timeout: 60 * time.Second}
t := target{Name: "Catalog", URL: "http://importer:8080/lists.json"}
if err := os.MkdirAll("./lists/", 0o755); err != nil {
fmt.Println("creating output dir", err)
}
if err := fetchAndSave(client, t, "./lists/"); err != nil {
log.Printf("ERROR %s → %v", t.URL, err)
}