Debian Codegraph @

maintenance/storage/make-blobs

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 if [scip-shell system . . `[`. -z $2 ];then
4 echoscip-shell system . . echo. 'Usage: make-blobs <server> <db> [<table name>]'
5 exit 1
6 fi
7 if [scip-shell system . . `[`. -z $3 ]; then
8 table=blobs
9 else
10 table=$3
11 fi
12
13 echoscip-shell system . . 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