install_roundcube.sh: update pear channel befor using it.
This commit is contained in:
parent
bfac1c384f
commit
f4184d0871
@ -506,6 +506,15 @@ fi
|
|||||||
echo -e "\n\n\t\033[37m\033[1mInstall modules for PHP Version ${_version}..\033[m\n"
|
echo -e "\n\n\t\033[37m\033[1mInstall modules for PHP Version ${_version}..\033[m\n"
|
||||||
if $PHP_DEBIAN_INSTALLATION ; then
|
if $PHP_DEBIAN_INSTALLATION ; then
|
||||||
|
|
||||||
|
echononl "\tUpdate protocols of channel \"pear.php.net\" .."
|
||||||
|
pear channel-update pear.php.net > $log_file 2>&1
|
||||||
|
if [[ "$?" = "0" ]]; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $log_file)"
|
||||||
|
fi
|
||||||
|
|
||||||
for _module in $needed_php_pear_modules ; do
|
for _module in $needed_php_pear_modules ; do
|
||||||
echononl "\tInstall Module '$_module'.."
|
echononl "\tInstall Module '$_module'.."
|
||||||
if ! pear list | grep -q "$_module" 2> /dev/null ; then
|
if ! pear list | grep -q "$_module" 2> /dev/null ; then
|
||||||
@ -534,7 +543,17 @@ if $PHP_DEBIAN_INSTALLATION ; then
|
|||||||
else
|
else
|
||||||
for _version in $php_major_versions ; do
|
for _version in $php_major_versions ; do
|
||||||
|
|
||||||
|
echononl "\tUpdate protocols of channel \"pear.php.net\" .."
|
||||||
|
pear channel-update pear.php.net > $log_file 2>&1
|
||||||
|
if [[ "$?" = "0" ]]; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $log_file)"
|
||||||
|
fi
|
||||||
|
|
||||||
for _module in $needed_php_pear_modules ; do
|
for _module in $needed_php_pear_modules ; do
|
||||||
|
|
||||||
echononl "\tInstall Module '$_module'.."
|
echononl "\tInstall Module '$_module'.."
|
||||||
if ! /usr/local/php-${_version}/bin/pear list | grep -q "$_module" 2> /dev/null ; then
|
if ! /usr/local/php-${_version}/bin/pear list | grep -q "$_module" 2> /dev/null ; then
|
||||||
/usr/local/php-${_version}/bin/pear install $_module > $log_file 2>&1
|
/usr/local/php-${_version}/bin/pear install $_module > $log_file 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user