diff --git a/install_roundcube.sh b/install_roundcube.sh index 692db41..bbdf143 100755 --- a/install_roundcube.sh +++ b/install_roundcube.sh @@ -506,6 +506,15 @@ fi echo -e "\n\n\t\033[37m\033[1mInstall modules for PHP Version ${_version}..\033[m\n" 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 echononl "\tInstall Module '$_module'.." if ! pear list | grep -q "$_module" 2> /dev/null ; then @@ -534,7 +543,17 @@ if $PHP_DEBIAN_INSTALLATION ; then else 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 + echononl "\tInstall Module '$_module'.." 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