call check_install_pear_packages before running update or install

This commit is contained in:
Ralf Becker 2014-04-25 13:31:55 +00:00
parent 769d56e390
commit e03e5ef68d

View File

@ -232,6 +232,10 @@ foreach(array('php','source_dir','data_dir','setup-cli') as $name)
{
if (!file_exists($config[$name])) bail_out(1,$config[$name].' not found!');
}
// install/upgrade required pear packages
check_install_pear_packages();
$setup_cli = $config['php'].' -d memory_limit=256M '.$config['setup-cli'];
if (!file_exists($config['header']) || filesize($config['header']) < 200) // default header redirecting to setup is 147 bytes
@ -338,8 +342,6 @@ if (!file_exists($config['header']) || filesize($config['header']) < 200) // def
system($config['start_webserver'].' reload');
}
}
// install/upgrade required pear packages
check_install_pear_packages();
// fix egw_cache evtl. created by root, stoping webserver from accessing it
fix_perms();
@ -392,8 +394,6 @@ else
echo "\nEGroupware successful updated\n";
break;
}
// install/upgrade required pear packages
check_install_pear_packages();
// fix egw_cache evtl. created by root, stoping webserver from accessing it
fix_perms();