Commit | Line | Data |
---|---|---|
1 | #!/bin/sh -e | |
2 | ||
3 | updatedb=/usr/share/diogenes/scripts/updatedb.php | |
4 | dbconfig=/etc/dbconfig-common/diogenes.conf | |
5 | ||
6 | if [ ! -f "$dbconfig" ]; then | |
7 | echo "Could not find config file : $dbconfig" | |
8 | exit 0 | |
9 | fi | |
10 | ||
11 | . $dbconfig | |
12 | if [ -z "$dbc_dbserver" ]; then | |
13 | dbc_dbserver="localhost" | |
14 | fi | |
15 | ||
16 | if [ -x "$updatedb" ]; then | |
17 | $updatedb -q -s "$dbc_dbserver" -d "$dbc_dbname" -u "$dbc_dbuser" -p "$dbc_dbpass" | |
18 | fi |