Skip to content

Commit

Permalink
Merge pull request #249 from kiwix/fix_wm_dirs
Browse files Browse the repository at this point in the history
Mirrorbrain: Fix computation of `WMDIRS` for scanning
  • Loading branch information
kelson42 authored Oct 16, 2023
2 parents b063199 + 2d0eece commit 69b367d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirrorbrain/bin/update_mirrorbrain_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MB=/usr/local/bin/mb
REPO="/var/www/download.kiwix.org/"
ESCREPO=`echo "$REPO" | sed -e 's/[\\/&]/\\\\&/g'`
ALLDIRS=`find "$REPO" -maxdepth 1 -type d | sed "s/$ESCREPO//"`
WMDIRS=`find "$REPO" -type d -name "*wikinews*" -o -type d -name "*wikipedia*" -o -type d -name "*wiktionary*" -o -type d -name "*wikisource*" -o -type d -name "*wikibooks*" -o -type d -name "*wikivoyage*" -o -type d -name "*wikiquote*" -o -type d -name "*wikinews*" -o -type d -name "*wikiversity*" -o -type d -name "*0.9*" | sed "s/$ESCREPO//"`
WMDIRS=`find "$REPO" -type d -name "*wikipedia*" -o -type d -name "*wiktionary*" -o -type d -name "*wikisource*" -o -type d -name "*wikibooks*" -o -type d -name "*wikivoyage*" -o -type d -name "*wikiquote*" -o -type d -name "*wikinews*" -o -type d -name "*wikiversity*" | sed "s/$ESCREPO//" | grep -v -e "^archive/"`
ZIMDIRS="zim"

function scanMirror() {
Expand Down

0 comments on commit 69b367d

Please sign in to comment.