Commit 4834bd06 authored by Mike Hibler's avatar Mike Hibler
Browse files

Use full path to mysqlcheck command.

parent 60880dd9
...@@ -13,20 +13,22 @@ PROTOGENI="@PROTOGENI_SUPPORT@" ...@@ -13,20 +13,22 @@ PROTOGENI="@PROTOGENI_SUPPORT@"
DBNAME="@TBDBNAME@" DBNAME="@TBDBNAME@"
LOGFILE="/var/log/mysqlcheck.log" LOGFILE="/var/log/mysqlcheck.log"
command=/usr/local/bin/mysqlcheck
case "$1" in case "$1" in
start|faststart|quietstart|onestart|forcestart) start|faststart|quietstart|onestart|forcestart)
rm -f $LOGFILE rm -f $LOGFILE
if [ $MAINSITE == "0" ]; then if [ $MAINSITE == "0" ]; then
echo "*** Checking $DBNAME ..." >> $LOGFILE echo "*** Checking $DBNAME ..." >> $LOGFILE
mysqlcheck --auto-repair $DBNAME >> $LOGFILE $command --auto-repair $DBNAME >> $LOGFILE
fi fi
if [ $PROTOGENI != "0" ]; then if [ $PROTOGENI != "0" ]; then
echo "*** Checking geni ..." >> $LOGFILE echo "*** Checking geni ..." >> $LOGFILE
mysqlcheck --auto-repair geni >> $LOGFILE $command --auto-repair geni >> $LOGFILE
echo "*** Checking geni-ch ..." >> $LOGFILE echo "*** Checking geni-ch ..." >> $LOGFILE
mysqlcheck --auto-repair geni-ch >> $LOGFILE $command --auto-repair geni-ch >> $LOGFILE
echo "*** Checking geni-cm ..." >> $LOGFILE echo "*** Checking geni-cm ..." >> $LOGFILE
mysqlcheck --auto-repair geni-cm >> $LOGFILE $command --auto-repair geni-cm >> $LOGFILE
fi fi
;; ;;
stop|faststop|quietstop|onestop|forcestop) stop|faststop|quietstop|onestop|forcestop)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment