line('Install ufw...'); exec('apt update 2>&1'); exec('apt install -y ufw 2>&1'); exec('ufw allow ssh'); // starting exec('service ufw start'); exec('echo "y" | ufw enable'); if (Install::isReady('ufw')) { $status = "Install ufw...success"; $this->info($status); Log::info($status); } else { $this->error('Install ufw...failed'); } } }