dépôts
/
lhc
/
web
/
wiklou.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge "New 'newimagestext' message on [[Special:NewFiles]]"
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
make-blobs
1
#!/bin/bash
2
3
if
[
-z
$2
];
then
4
echo
'Usage: make-blobs <server> <db> [<table name>]'
5
exit
1
6
fi
7
if
[
-z
$3
];
then
8
table
=
blobs
9
else
10
table
=
$3
11
fi
12
13
echo
"CREATE DATABASE
$2
"
| mysql
-u
wikiadmin
-p
`wikiadmin_pass`
-h
$1
&&
\
14
sed
"s/blobs\>/
$table
/"
blobs.sql | mysql
-u
wikiadmin
-p
`wikiadmin_pass`
-h
$1 $2