add wait/sleep for debconf fix

This commit is contained in:
Josh North 2014-08-05 12:13:56 -04:00
parent afdae3beaf
commit e430d132fe

View File

@ -85,8 +85,11 @@ export ADMIN_PASS=passw0rd
DEBCONFPASSWORD=`awk '/^password/ { if (NR<7) print $3;}' /etc/mysql/debian.cnf`
mysql -u root -p${ADMIN_PASS} -e "GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '${DEBCONFPASSWORD}';"
mysql -u root -p${ADMIN_PASS} -e "flush privileges;"
sleep 5
killall mysqld
service mysql start
sleep 10
/etc/init.d/mysql start
#ok let's go
cd $LOAD_LOC