Uses UFC_NameTokens instead of UFC_Name to perform search on names in xnet.
[platal.git] / bin / cron / upgradedb.sh
CommitLineData
d3766f1a
RB
1#!/bin/bash
2
3XDB=x5dat
4
5CRONDIR=$(dirname $0)
6SCRIPTPWD=$(pwd)
7PLATAL_ROOT=${CRONDIR}/../..
8
9VERSION=$(grep VERSION ${PLATAL_ROOT}/ChangeLog | head -1 | sed -e "s/VERSION //;s/ .*//");
10
11UPDATEDIR=${PLATAL_ROOT}/upgrade/${VERSION}
12UPDATESCRIPT=${UPDATEDIR}/update.sh
13
14echo "Running update script for version ${VERSION}";
15
16if [[ -x ${UPDATESCRIPT} ]]; then
17 cd ${UPDATEDIR} && NO_CONFIRM=1 DATABASE=${XDB} ./update.sh -u admin
18else
19 echo "The update script ${UPDATESCRIPT} doesn't exist, aborting."
20fi
21
22cd ${SCRIPTPWD}
23${CRONDIR}/run_tests.sh