Skip to content

Commit 7d7d6f6

Browse files
committed
Replace KIWIXCACHEID in our template copy
As we're using an external template based on libkiwix source code, the KIWIXCACHEID is not replaced and thus static… and thus never purged. See #458
1 parent 4ac8d67 commit 7d7d6f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zim/library/update-kiwixserve-template.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ echo "Applying Kiwix Patch…"
5555

5656
echo "$KIWIX_PATCH" | patch --input=- --output=$TEMPLATE_TMP_PATH -p1 $TEMPLATE_SRC_PATH
5757

58+
echo "Replacing KIWIXCACHEID with ${LIBKIWIX_VERSION}"
59+
60+
sed "s/KIWIXCACHEID/$LIBKIWIX_VERSION/g" $TEMPLATE_TMP_PATH > $TEMPLATE_TMP_PATH
61+
5862
echo "Replacing final file…"
5963

6064
mv $TEMPLATE_TMP_PATH $TEMPLATE_PATH

0 commit comments

Comments
 (0)