Skip to content

Commit

Permalink
backupwikis: use run.php for getSiteInfo (#4147)
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Jan 23, 2025
1 parent 7aba42e commit 6ae13ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mediawiki/files/bin/backupwikis
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for wiki in $filtered_wikis

echo "Retrieving site information for $wiki..."

eval $(/usr/bin/php /srv/mediawiki/$mwversion/extensions/MirahezeMagic/maintenance/getSiteInfo.php --wiki $wiki | \
eval $(/usr/bin/php /srv/mediawiki/$mwversion/maintenance/run.php /srv/mediawiki/$mwversion/extensions/MirahezeMagic/maintenance/getSiteInfo.php --wiki $wiki | \
awk -F': ' '/Sitename|URL|Language|License/ {
gsub(" ", "_", $1);
printf("%s=\"%s\"\n", toupper($1), $2);
Expand Down Expand Up @@ -99,4 +99,4 @@ done
if [ "$automatic_run" = true ]; then
echo "Logging beginning of automatic archival..."
/usr/local/bin/logsalmsg "AUTOMATIC: Finished archival of all public wikis to Internet Archive"
fi
fi

0 comments on commit 6ae13ac

Please sign in to comment.