info('LetsEncrypt install...'); exec('apt update 2>&1'); exec('apt-get install software-properties-common 2>&1'); exec('add-apt-repository universe 2>&1'); exec('add-apt-repository ppa:certbot/certbot 2>&1'); exec('apt-get update 2>&1'); exec('apt-get install certbot python3-certbot-nginx 2>&1'); if (Install::isReady('certbot')) { // get status of nginx exec('nginx -v 2>&1', $output); $status = "$output[0] installed"; $this->info($status); Log::info($status); } } }