4 if [ ! -d "$scriptdir" ]; then
5 echo >&2 "Missing scriptdir: $scriptdir"
9 echo >&2 "Running eventum upgrade scripts to in $scriptdir"
11 if [ -x /usr/bin/php4 ]; then
20 echo -n "Eventum upgrade: $@..."
21 if ! $php -q $scriptdir/$script; then
23 echo >&2 "Please run manually: $php -q $scriptdir/$script"
24 echo >&2 "NOTE: You might need to add CREATE, DROP, ALTER and INDEX privileges to Eventum MySQL user for this to work".
29 while read script text; do
30 upgrade_script $script "$text"