Browse Source

change in install command

feature/refactor-php
prabuddha 9 years ago
parent
commit
6f33eca347
  1. 5
      php/Stack/apt.php

5
php/Stack/apt.php

@ -21,16 +21,17 @@ class APT extends PKG_MANAGER {
public function install() {
$process = EE_CLI\Process::create( "sudo apt-get install {$this->pkg['package_name']}" );
$process = EE_CLI\Process::create( "sudo apt-get -y --force-yes install {$this->pkg['package_name']}" );
$result = $process->run();
if ( 0 !== $result->return_code ) {
//logging part here if installation fail
//print_r($result);
}
}
private function update(){
function update(){
$process = EE_CLI\Process::create( "sudo apt-get update" );
$result = $process->run();
}

Loading…
Cancel
Save