From f4184d0871ba7cdd747994660d9d923bb19e9b18 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 17 May 2018 15:11:55 +0200 Subject: [PATCH] install_roundcube.sh: update pear channel befor using it. --- install_roundcube.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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