From 349f26f5ea77f1b7a3c4ab2311629e0d3ba747a2 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 26 Nov 2023 21:33:34 +0200 Subject: [PATCH] update option name --- example/config.json | 2 +- src/cli/document/crawl.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/config.json b/example/config.json index 65bcce3..87b8dfb 100644 --- a/example/config.json +++ b/example/config.json @@ -123,7 +123,7 @@ "image/ico" ] }, - "mirror": + "remote": { "ftp": [ diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index f661d7f..7948c09 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -416,8 +416,8 @@ foreach($search->get() as $document) } } - // Copy to FTP mirror storage on enabled - foreach ($config->snap->storage->mirror->ftp as $ftp) + // Copy to FTP storage on enabled + foreach ($config->snap->storage->remote->ftp as $ftp) { // Resource enabled if (!$ftp->enabled)