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 ""
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
echononl " Remove MariaDB data directory"
if $remove_data_dir ; then

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