Skip to content

Commit

Permalink
Try to do cleaner job of outputting status information
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 19, 2013
1 parent 01002aa commit 8c1e491
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions maintainer-tools/installer/installer.php
Expand Up @@ -37,24 +37,29 @@

$c->writeln();
$c->message('Upgrading PEAR to the latest version...', 'cli.message');

system('pear upgrade PEAR');
$c->message('Success.', 'cli.success');

$c->writeln();
$c->message('Clearing the PEAR cache...', 'cli.message');

system('pear clear-cache');
$c->message('Success.', 'cli.success');

$c->writeln();
$c->message('Registering pear.horde.org PEAR channel...', 'cli.message');

system('pear channel-discover pear.horde.org');
$c->message('Success.', 'cli.success');

$c->writeln();
$c->message('Set Horde installation directory...', 'cli.message');

system('pear install horde/horde_role');
system('pear config-set -c pear.horde.org horde_dir ' . escapeshellarg($horde_dir));

$c->message('Installing Horde packages...', 'cli.message');
system('pear config-set -c pear.horde.org horde_dir ' . escapeshellarg($values->horde_dir));
$c->message('Success.', 'cli.success');

system('pear -d preferred_state=alpha -d auto_discover=1 install -a -B horde/horde');
$c->writeln();
$c->message('Installing Horde packages (this may take awhile)...', 'cli.message');
system('pear -d auto_discover=1 install -a -B horde/horde');
$c->message('Success.', 'cli.success');

$c->writeln();
$c->message('Installation complete!', 'cli.success');

0 comments on commit 8c1e491

Please sign in to comment.