Skip to content

Commit

Permalink
fix: improved console.logging
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 1, 2024
1 parent c96e0ce commit 0b20ad3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class CoCreateNginx {
console.log('Nginx not found, installing...');
await exec('sudo apt-get update && sudo apt-get install -y nginx');
await exec("sudo ufw allow 'Nginx Full'");
console.log('Nginx installed successfully');
}

let stream = `user www-data;
Expand Down Expand Up @@ -133,9 +132,9 @@ stream {
let test = await exec(`sudo nginx -t`);
if (test.stderr.includes('test is successful')) {
await exec(`sudo systemctl reload nginx`);
console.log('main test passed reloading nginx')
console.log('Nginx installed successfully');
} else {
console.log('main test failed')
console.log('Nginx config test failed')
}

} else if (platform === 'darwin') {
Expand Down

0 comments on commit 0b20ad3

Please sign in to comment.