Changed files:
eventum-irc.init -> 1.5
eventum-router-qmail.sh -> 1.2
eventum-upgrade.sh -> 1.3
# Get network config
. /etc/sysconfig/network
-PHP=/usr/bin/php4
PIDFILE=/var/run/eventum/irc_bot.pid
# Get service config
if [ ! -f /var/lock/subsys/eventum-irc ]; then
msg_starting eventum-irc
start-stop-daemon --start \
- --exec $PHP \
+ --exec /usr/bin/php \
--pidfile $PIDFILE \
--chuid http \
--chdir /usr/share/eventum/irc \
esac
cd /usr/share/eventum
-/usr/bin/php4 -q route_$TYPE.php "$@" && exit $OK
+/usr/bin/php -q route_$TYPE.php "$@" && exit $OK
rc=$?
# exit does are for postfix, based on /usr/include/sysexits.h
echo >&2 "Running eventum upgrade scripts to in $scriptdir"
-if [ -x /usr/bin/php4 ]; then
- php=/usr/bin/php4
-else
- php=/usr/bin/php
-fi
-
upgrade_script() {
script="$1"; shift
echo -n "Eventum upgrade: $@..."
- if ! $php -q $scriptdir/$script; then
+ if ! php $scriptdir/$script; then
echo >&2 ""
- echo >&2 "Please run manually: $php -q $scriptdir/$script"
+ echo >&2 "Please run manually: php $scriptdir/$script"
echo >&2 "NOTE: You might need to add CREATE, DROP, ALTER and INDEX privileges to Eventum MySQL user for this to work".
fi
echo ""