From 222b01f5169f1c7e69762e0e8904c24f78f71882 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 28 Jul 2010 11:52:48 +0200 Subject: update to MediaWiki 1.16.0 --- maintenance/storage/make-blobs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'maintenance/storage/make-blobs') diff --git a/maintenance/storage/make-blobs b/maintenance/storage/make-blobs index 9eb7e83e..36cf9ced 100755 --- a/maintenance/storage/make-blobs +++ b/maintenance/storage/make-blobs @@ -1,11 +1,16 @@ #!/bin/bash -if [ X$2 == X ];then - echo 'Usage: make-blobs ' +if [ -z $2 ];then + echo 'Usage: make-blobs []' exit 1 fi +if [ -z $3 ]; then + table=blobs +else + table=$3 +fi echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \ -mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql +sed "s/blobs\>/$table/" blobs.sql | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 -- cgit v1.2.3-54-g00ecf