Remove also file '/etc/ld.so.conf.d/mysql.conf' if exists.

This commit is contained in:
Christoph 2018-02-27 18:03:40 +01:00
parent 11c3781854
commit 70ecbee504
3 changed files with 70 additions and 19 deletions

View File

@ -229,6 +229,32 @@ fi
echo "" 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 _failed=false
echononl " Remove MariaDB data directory" echononl " Remove MariaDB data directory"
if $remove_data_dir ; then if $remove_data_dir ; then

View 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

View File

@ -229,28 +229,28 @@ fi
echo "" echo ""
echononl " Remove '/etc/ld.so.conf.d/mysql.conf'.." echononl " Remove '/etc/ld.so.conf.d/mysql.conf'.."
if [[ -f "/etc/ld.so.conf.d/mysql.conf" ]]; then if [[ -f "/etc/ld.so.conf.d/mysql.conf" ]]; then
rm /etc/ld.so.conf.d/mysql.conf > $tmp_log_file 2>&1 rm /etc/ld.so.conf.d/mysql.conf > $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)"
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 else
echo_skipped echo_ok
fi 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 ""