From 6cb3fbd086db94aac8c44c1be272fb426b8debb8 Mon Sep 17 00:00:00 2001 From: chenjia404 Date: Mon, 19 Aug 2024 17:40:42 +0800 Subject: [PATCH 1/2] update zim-tools TO 3.4.0-2 --- mirrorzim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrorzim.sh b/mirrorzim.sh index f065e70..7edfa28 100755 --- a/mirrorzim.sh +++ b/mirrorzim.sh @@ -84,7 +84,7 @@ fi printf "\nEnsure zimdump is present...\n" PATH=$PATH:$(realpath ./bin) -which zimdump &> /dev/null || (curl --progress-bar -L https://download.openzim.org/release/zim-tools/zim-tools_linux-x86_64-3.1.0.tar.gz | tar -xvz --strip-components=1 -C ./bin zim-tools_linux-x86_64-3.1.0/zimdump && chmod +x ./bin/zimdump) +which zimdump &> /dev/null || (curl --progress-bar -L https://download.openzim.org/release/zim-tools/zim-tools_linux-x86_64-3.4.0-2.tar.gz | tar -xvz --strip-components=1 -C ./bin zim-tools_linux-x86_64-3.4.0-2/zimdump && chmod +x ./bin/zimdump) printf "\nDownload and verify the zim file...\n" ZIM_FILE_SOURCE_URL="$(./tools/getzim.sh download $WIKI_TYPE $WIKI_TYPE $LANGUAGE_CODE all maxi latest | grep 'URL:' | cut -d' ' -f3)" From 0da9fd98d0db327d6ed40a173766ad32ebd760fa Mon Sep 17 00:00:00 2001 From: chenjia404 Date: Thu, 22 Aug 2024 00:34:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20nocopy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mirrorzim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrorzim.sh b/mirrorzim.sh index 7edfa28..f617bcd 100755 --- a/mirrorzim.sh +++ b/mirrorzim.sh @@ -120,7 +120,7 @@ printf "\n-------------------------\n" printf "\nIPFS_PATH=$IPFS_PATH\n" printf "\nAdding the processed tmp directory to IPFS\n(this part may take long time on a slow disk):\n" -CID=$(ipfs add -r --cid-version 1 --pin=false --offline -Qp $TMP_DIRECTORY) +CID=$(ipfs add -r --cid-version 1 --nocopy -Qp $TMP_DIRECTORY) MFS_DIR="/${ZIM_FILE}__$(date +%F_%T)" # pin by adding to MFS under a meaningful name