From b5da46920a121d54a3672621e75f05f76692a603 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 17 Oct 2021 18:33:43 +0200 Subject: [PATCH] mod_php_install.sh: add 'icu4c'-libraries to ld.so.conf.d directory if php version 5.6 will be installed. --- mod_php_install.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/mod_php_install.sh b/mod_php_install.sh index 7138370..e42c112 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -1833,6 +1833,46 @@ if $_install_icu4c && [[ ! -d /usr/local/icu4c-$ICU4C_VERSION ]]; then [[ $OK = "yes" ]] || fatal "Interupted by user" fi + echononl "\tCreate file '/etc/ld.so.conf.d/icu4c.conf'.." + cat << EOF > "/etc/ld.so.conf.d/icu4c.conf" 2> $tmp_err_msg +/usr/local/icu4c/lib +EOF + if [[ $? -eq 0 ]]; then + echo_ok + else + echo_failed + error "Creation of file '/etc/ld.so.conf.d/icu4c.conf' failed.\n\n$(cat $tmp_err_msg)" + + echo "" + echononl "continue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/no]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Interupted by user" + fi + + echononl "\tCreate necessary links and cache to the shared libraries (ldconfig)" + ldconfig > $tmp_err_msg 2>&1 + if [[ $? -eq 0 ]]; then + echo_ok + else + echo_failed + error "$(cat $tmp_err_msg)" + + echo "" + echononl "continue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/no]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Interupted by user" + fi + fi