]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-upgrade.sh
- outdated in 1.5.4
[packages/eventum.git] / eventum-upgrade.sh
CommitLineData
c83dfbdd
ER
1#!/bin/sh
2
3scriptdir="$1"
4if [ ! -d "$scriptdir" ]; then
5 echo >&2 "Missing scriptdir: $scriptdir"
6 exit 1
7fi
8
9cat >&2 <<-EOF
10Running eventum upgrade scripts to in $scriptdir
11These will fail if your eventum user doesn't have ALTER privilege to database.
12
13!!! Proceeding in 10 seconds !!!
14EOF
15
16sleep 10s
17if [ -x /usr/bin/php4 ]; then
18 php=/usr/bin/php4
19else
20 php=/usr/bin/php
21fi
22
23upgrade_script() {
24 script="$1"; shift
25
26 echo -n "Eventum upgrade: $@..."
27 if ! $php -q $scriptdir/$script; then
28 echo >&2 ""
29 echo >&2 "Please run manually: $php -q $scriptdir/$script"
30 fi
31 echo ""
32}
33
34while read script text; do
35 upgrade_script $script "$text"
36done
This page took 0.033013 seconds and 4 git commands to generate.