7 PLATAL_ROOT
=${CRONDIR}/..
/..
9 VERSION
=$
(grep VERSION
${PLATAL_ROOT}/ChangeLog |
head -1 |
sed -e
"s/VERSION //;s/ .*//");
11 UPDATEDIR
=${PLATAL_ROOT}/upgrade
/${VERSION}
12 UPDATESCRIPT
=${UPDATEDIR}/update.sh
14 echo "Running update script for version ${VERSION}";
16 if [[ -x
${UPDATESCRIPT} ]]; then
17 cd ${UPDATEDIR} && NO_CONFIRM
=1 DATABASE
=${XDB} .
/update.sh
-u admin
19 echo "The update script ${UPDATESCRIPT} doesn't exist, aborting."
23 ${CRONDIR}/run_tests.sh