menu('Install') // ->addOption('nginx', 'Nginx') // ->open(); //File::put('/etc/kkk', '/etc/kkk'); //$workers = exec('echo $(grep ^processor /proc/cpuinfo | wc -l)'); //$ //$ $this->info('Nginx install...'); exec('apt update 2>&1'); exec('apt install -y nginx 2>&1'); if (Install::isReady('nginx')) { // get status of nginx exec('nginx -v 2>&1', $output); $status = "$output[0] installed"; $this->info($status); Log::info($status); } } }