increase timeout before killing to account for slower startup speed of larger databases

This commit is contained in:
Micah Anderson 2010-09-22 12:55:10 -04:00
parent deec3d6a6d
commit eaf52f77a3

View file

@ -8,7 +8,7 @@ test $# -gt 0 || exit 1
sleep 5
echo "USE mysql; UPDATE user SET Password=PASSWORD('$1') WHERE User='root' AND Host='localhost';" | mysql -u root
killall mysqld
sleep 5
sleep 15
# chown to be on the safe side
ls -al /var/lib/mysql/mysql-bin.* &> /dev/null
[ $? == 0 ] && chown mysql.mysql /var/lib/mysql/mysql-bin.*