From: Brion Vibber Date: Mon, 14 Sep 2009 21:35:14 +0000 (+0000) Subject: Apply live hack from wmf-deployment r53208: allows passing alt table name X-Git-Tag: 1.31.0-rc.0~39731 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=bd2df17bea45911340a7505801371372f3af7198;p=lhc%2Fweb%2Fwiklou.git Apply live hack from wmf-deployment r53208: allows passing alt table name --- diff --git a/maintenance/storage/make-blobs b/maintenance/storage/make-blobs index 9eb7e83e7b..36cf9cedf9 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