]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-upgrade.sh
- fix irc bot package, add restart in %post
[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
f44acf2a 9echo >&2 "Running eventum upgrade scripts to in $scriptdir"
c83dfbdd 10
c83dfbdd
ER
11if [ -x /usr/bin/php4 ]; then
12 php=/usr/bin/php4
13else
14 php=/usr/bin/php
15fi
16
17upgrade_script() {
18 script="$1"; shift
19
20 echo -n "Eventum upgrade: $@..."
21 if ! $php -q $scriptdir/$script; then
22 echo >&2 ""
23 echo >&2 "Please run manually: $php -q $scriptdir/$script"
f44acf2a 24 echo >&2 "NOTE: You might need to add CREATE, DROP, ALTER and INDEX privileges to Eventum MySQL user for this to work".
c83dfbdd
ER
25 fi
26 echo ""
27}
28
29while read script text; do
30 upgrade_script $script "$text"
31done
This page took 0.086348 seconds and 4 git commands to generate.