mod_php_install.sh: add 'icu4c'-libraries to ld.so.conf.d directory if php version 5.6 will be installed.
This commit is contained in:
parent
25e7ebf704
commit
b5da46920a
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user