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