Anonymous
public text v1 · immutable#!/bin/sh
PHP=`which php`
# PHP Version Check
VAL=`${PHP} -r "die(!version_compare(phpversion(), '5.0.0', '>='));"`
if [ $VAL -ne 0 ]
then
printf "Kbot needs PHP 5.0 or greater\n"
exit
fi
if [ $2 -a $2 = "--debug" ]
then
# Start in debug mode, in foreground
${PHP} initialize.php $1 --debug
else
${PHP} initialize.php $1 > /dev/null &
fi
# This appears to be all fine - Sean