Browse Source

#107 Fix percona-server-5.6

bugfixes
harshadyeola 10 years ago
parent
commit
ad10d5c30d
  1. 2
      src/modules/site/ee_mod_site_cd.sh
  2. 6
      src/modules/stack/install/ee_mod_install_mysql.sh
  3. 4
      src/modules/stack/install/ee_mod_repo_mysql.sh

2
src/modules/site/ee_mod_site_cd.sh

@ -1,4 +1,4 @@
#CD to Webroot
# Change directory to website root
function ee_site_cd()
{

6
src/modules/stack/install/ee_mod_install_mysql.sh

@ -13,8 +13,8 @@ ee_mod_install_mysql()
if [ -n "$EE_PACKAGE_NAME" ]; then
# Setting up MySQL password
debconf-set-selections <<< "mysql-server mysql-server/root_password password $ee_random"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $ee_random"
debconf-set-selections <<< "percona-server-server-5.6 percona-server-server/root_password password $ee_random"
debconf-set-selections <<< "percona-server-server-5.6 percona-server-server/root_password_again password $ee_random"
# Generate ~/.my.cnf
echo -e "[client]\nuser=root\npassword=$ee_random" > ~/.my.cnf
@ -22,7 +22,7 @@ ee_mod_install_mysql()
fi
ee_lib_echo "Installing MySQL, please Wait..."
$EE_APT_GET install mysql-server mysqltuner percona-toolkit \
$EE_APT_GET install percona-server-server-5.6 mysqltuner percona-toolkit \
|| ee_lib_error "Unable to install MySQL, exit status = " $?
# Download tuning-primer.sh

4
src/modules/stack/install/ee_mod_repo_mysql.sh

@ -8,7 +8,7 @@ function ee_mod_repo_mysql()
|| ee_lib_error "Unable to add Percona repository, exit status = " $?
# Fetch and install Percona GnuPG key
gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A && \
gpg -a --export CD2EFD2A | sudo apt-key add - \
gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A &>> $EE_COMMAND_LOG && \
gpg -a --export CD2EFD2A | sudo apt-key add - &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to add Percona GnuPG key, exit status = " $?
}

Loading…
Cancel
Save