Browse Source

Fixed Anemometer not installing on some servers. Added Anemometer user permission

old-stable
gau1991 10 years ago
parent
commit
d98564c768
  1. 5
      src/vendor/ee_ven_install_utils.sh

5
src/vendor/ee_ven_install_utils.sh

@ -70,7 +70,7 @@ function ee_ven_install_utils()
# phpinfo()
echo -e "<?php \n\t phpinfo(); \n?>" &>> /var/www/22222/htdocs/php/info.php
fi
dpkg -l | grep mysql-server &>> $EE_COMMAND_LOG
mysqladmin ping &> /dev/null
if [ $? -eq 0 ]; then
# Setup Anemometer
if [ ! -d /var/www/22222/htdocs/db/anemometer ]; then
@ -116,6 +116,9 @@ function ee_ven_install_utils()
echo -e "}" >> /etc/logrotate.d/mysql-server
fi
# Set anemometer privileges to databases
mysql -e "grant all privileges on *.* to 'anemometer'@'localhost'" ;
# Download pt-query-advisor Fixed #189
wget -q http://bazaar.launchpad.net/~percona-toolkit-dev/percona-toolkit/2.1/download/head:/ptquerydigest-20110624220137-or26tn4expb9ul2a-16/pt-query-digest -O /usr/bin/pt-query-advisor \
|| ee_lib_error "Unable to copy download pt-query-advisor, exit status = " $?

Loading…
Cancel
Save