Last change
on this file since 134 was
8,
checked in by g7moreau, 13 years ago
|
- Move biblehal folder in subfolder of trakata
|
-
Property svn:executable set to
*
|
File size:
530 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # |
---|
3 | # gabriel 2010/06/03 |
---|
4 | |
---|
5 | export PATH="/bin:/usr/bin:/usr/lib/biblehal" |
---|
6 | |
---|
7 | |
---|
8 | bibfile=$1; shift |
---|
9 | |
---|
10 | search=$(basename ${bibfile} .bib | cut -f 2-10 -d '-') |
---|
11 | |
---|
12 | CONFIG_FILE=/srv/refbase/initialize/db.inc.php |
---|
13 | |
---|
14 | CONNECT_NAME=$(grep '$username =' ${CONFIG_FILE} | cut -f 2 -d '"') |
---|
15 | CONNECT_PASS=$(grep '$password =' ${CONFIG_FILE} | cut -f 2 -d '"') |
---|
16 | |
---|
17 | cat <<END_SQL | mysql --user=${CONNECT_NAME} --password=${CONNECT_PASS} |
---|
18 | DELETE FROM refbaselegi.refs WHERE url RLIKE '/$search/'; |
---|
19 | quit |
---|
20 | END_SQL |
---|
21 | |
---|
22 | rm /var/cache/biblehal/upload/${bibfile} |
---|
Note: See
TracBrowser
for help on using the repository browser.