Extension:SpamBlacklist/update script
From MediaWiki.org
I hereby release this script into the public domain. -- Sy / (talk) 23:41, 16 July 2006 (UTC)
#!/bin/bash
cd /opt/www.gtalug.org/htdocs/extensions/SpamBlacklist
dir=${0%update_blacklists}
echo " * updating from wikimedia.org's blacklist"
wget -O $dir/blacklist-wikimedia 'http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw'
echo " * updating from chongqed.org's blacklist"
wget -O $dir/blacklist-chongqed.raw 'http://blacklist.chongqed.org'
cut -d? -f3 $dir/blacklist-chongqed.raw > blacklist-chongqed
rm $dir/blacklist-chongqed.raw
If you are using memcached, you will also have to delete the spam_blacklist_regexes key. The following can be added to the above script:
echo " * removing memcached key" php <mediawiki_path>/maintenance/mcc.php <<EOF delete spam_blacklist_regexes EOF
<mediawiki_path> should be replaced with the path to your mediawiki installation.

