Comparing version 5.0.1 to 5.0.2
{ | ||
"name": "certbot", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"main": "server.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Dois2/BOMPRO_LUCAS.git", |
@@ -36,3 +36,3 @@ // Importações módulos: | ||
// Todos os comandos | ||
const command = `${stopNginx80} && ${certGama} && ${certPortal} && ${reload443}`; | ||
const command = `${certGama} && ${certPortal} && ${reload443}`; | ||
@@ -43,2 +43,10 @@ shell.exec(stopNginx80, function(code, stdout, stderr) { | ||
shell.exec(startNginx80); | ||
} else { | ||
shell.exec(command, function(code, stdout, stderr) { | ||
if (code == 1) { | ||
shell.exec(startNginx80); | ||
} else { | ||
shell.exec(startNginx80); | ||
} | ||
}); | ||
} | ||
@@ -45,0 +53,0 @@ console.log("Program output:", stdout); |
2281
45