source: trunk/biblehal/biblehal-cleanall @ 321

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
RevLine 
[2]1#!/bin/bash
2#
3# gabriel 2010/04/02
4
5export PATH="/bin:/usr/bin:/usr/lib/biblehal"
6
7
8CONFIG_FILE=/srv/refbase/initialize/db.inc.php
9
10CONNECT_NAME=$(grep '$username =' ${CONFIG_FILE} | cut -f 2 -d '"')
11CONNECT_PASS=$(grep '$password =' ${CONFIG_FILE} | cut -f 2 -d '"')
12
13cat <<END_SQL | mysql --user=${CONNECT_NAME} --password=${CONNECT_PASS}
14DELETE FROM refbaselegi.refs;
15quit
16END_SQL
17
18
19rm /var/cache/biblehal/upload/*.bib
Note: See TracBrowser for help on using the repository browser.