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