Some minor changes.
This commit is contained in:
parent
81f345b175
commit
11c3781854
22
DOC/README.percona.debian
Normal file
22
DOC/README.percona.debian
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
# - Install MySQL client libraries /libmysqlclient
|
||||||
|
# -
|
||||||
|
apt-get install libmariadb-dev libmariadb-dev-compat
|
||||||
|
apt-get install cpanminus
|
||||||
|
|
||||||
|
apt-get install libdbd-mysql-perl
|
||||||
|
# - OR /AND
|
||||||
|
cpanm DBD::mysql
|
||||||
|
|
||||||
|
|
||||||
|
# - Fetch the repository packages from web
|
||||||
|
# -
|
||||||
|
# - Once you install this package the Percona repositories should be added.
|
||||||
|
# - You can check the repository setup in the /etc/apt/sources.list.d/percona-release.list file.
|
||||||
|
# -
|
||||||
|
cd /tmp
|
||||||
|
wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
|
||||||
|
dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install percona-server-server-5.7 percona-server-common-5.7 percona-server-client-5.7
|
@ -299,9 +299,9 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echononl " Remove directory '${working_dir}/log-${CURRENT_VERSION}'.."
|
echononl " Remove directory '${working_dir}/log-mariadb-${CURRENT_VERSION}'.."
|
||||||
if [[ -d "${working_dir}/log-${CURRENT_VERSION}" ]] ; then
|
if [[ -d "${working_dir}/log-mariadb-${CURRENT_VERSION}" ]] ; then
|
||||||
rm -r ${working_dir}/log-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
rm -r ${working_dir}/log-mariadb-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $tmp_log_file)"
|
error "$(cat $tmp_log_file)"
|
||||||
|
@ -299,9 +299,9 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echononl " Remove directory '${working_dir}/log-${CURRENT_VERSION}'.."
|
echononl " Remove directory '${working_dir}/log-mysql-${CURRENT_VERSION}'.."
|
||||||
if [[ -d "${working_dir}/log-${CURRENT_VERSION}" ]] ; then
|
if [[ -d "${working_dir}/log-mysql-${CURRENT_VERSION}" ]] ; then
|
||||||
rm -r ${working_dir}/log-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
rm -r ${working_dir}/log-mysql-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $tmp_log_file)"
|
error "$(cat $tmp_log_file)"
|
||||||
|
@ -227,6 +227,31 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echononl " Remove '/etc/ld.so.conf.d/mysql.conf'.."
|
||||||
|
if [[ -f "/etc/ld.so.conf.d/mysql.conf" ]]; then
|
||||||
|
rm /etc/ld.so.conf.d/mysql.conf > $tmp_log_file 2>&1
|
||||||
|
if [[ $? -ne 0 ]] ; then
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $tmp_log_file)"
|
||||||
|
else
|
||||||
|
echo_ok
|
||||||
|
fi
|
||||||
|
|
||||||
|
echononl " Run ldconfig - configure dynamic linker run-time bindings .."
|
||||||
|
ldconfig -V > $tmp_log_file 2>&1
|
||||||
|
if [[ $? -ne 0 ]] ; then
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $tmp_log_file)"
|
||||||
|
else
|
||||||
|
echo_ok
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo_skipped
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
_failed=false
|
_failed=false
|
||||||
@ -299,9 +324,9 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echononl " Remove directory '${working_dir}/log-${CURRENT_VERSION}'.."
|
echononl " Remove directory '${working_dir}/log-percona-${CURRENT_VERSION}'.."
|
||||||
if [[ -d "${working_dir}/log-${CURRENT_VERSION}" ]] ; then
|
if [[ -d "${working_dir}/log-percona-${CURRENT_VERSION}" ]] ; then
|
||||||
rm -r ${working_dir}/log-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
rm -r ${working_dir}/log-percona-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $tmp_log_file)"
|
error "$(cat $tmp_log_file)"
|
||||||
@ -313,8 +338,8 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echononl " Remove directory '${working_dir}/percona-server-${CURRENT_VERSION}'.."
|
echononl " Remove directory '${working_dir}/percona-server-${CURRENT_VERSION}'.."
|
||||||
if [[ -d "${working_dir}/mysql-${CURRENT_VERSION}" ]] ; then
|
if [[ -d "${working_dir}/percona-server-${CURRENT_VERSION}" ]] ; then
|
||||||
rm -r ${working_dir}/mysql-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
rm -r ${working_dir}/percona-server-${CURRENT_VERSION} > $tmp_log_file 2>&1
|
||||||
if [[ $? -ne 0 ]] ; then
|
if [[ $? -ne 0 ]] ; then
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $tmp_log_file)"
|
error "$(cat $tmp_log_file)"
|
||||||
|
Loading…
Reference in New Issue
Block a user