Some minor changes.

This commit is contained in:
Christoph 2018-02-27 04:31:04 +01:00
parent 81f345b175
commit 11c3781854
4 changed files with 58 additions and 11 deletions

22
DOC/README.percona.debian Normal file
View 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

View File

@ -299,9 +299,9 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
echo ""
echononl " Remove directory '${working_dir}/log-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/log-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/log-${CURRENT_VERSION} > $tmp_log_file 2>&1
echononl " Remove directory '${working_dir}/log-mariadb-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/log-mariadb-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/log-mariadb-${CURRENT_VERSION} > $tmp_log_file 2>&1
if [[ $? -ne 0 ]] ; then
echo_failed
error "$(cat $tmp_log_file)"

View File

@ -299,9 +299,9 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
echo ""
echononl " Remove directory '${working_dir}/log-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/log-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/log-${CURRENT_VERSION} > $tmp_log_file 2>&1
echononl " Remove directory '${working_dir}/log-mysql-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/log-mysql-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/log-mysql-${CURRENT_VERSION} > $tmp_log_file 2>&1
if [[ $? -ne 0 ]] ; then
echo_failed
error "$(cat $tmp_log_file)"

View File

@ -227,6 +227,31 @@ else
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 ""
_failed=false
@ -299,9 +324,9 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
echo ""
echononl " Remove directory '${working_dir}/log-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/log-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/log-${CURRENT_VERSION} > $tmp_log_file 2>&1
echononl " Remove directory '${working_dir}/log-percona-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/log-percona-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/log-percona-${CURRENT_VERSION} > $tmp_log_file 2>&1
if [[ $? -ne 0 ]] ; then
echo_failed
error "$(cat $tmp_log_file)"
@ -313,8 +338,8 @@ if [[ -n "$CURRENT_VERSION" ]] ; then
fi
echononl " Remove directory '${working_dir}/percona-server-${CURRENT_VERSION}'.."
if [[ -d "${working_dir}/mysql-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/mysql-${CURRENT_VERSION} > $tmp_log_file 2>&1
if [[ -d "${working_dir}/percona-server-${CURRENT_VERSION}" ]] ; then
rm -r ${working_dir}/percona-server-${CURRENT_VERSION} > $tmp_log_file 2>&1
if [[ $? -ne 0 ]] ; then
echo_failed
error "$(cat $tmp_log_file)"