mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 21:28:23 +00:00
Use non 0 exit code in abnormal shutdown
This commit is contained in:
parent
212212fe70
commit
96c2d2419b
1 changed files with 3 additions and 3 deletions
|
@ -108,17 +108,17 @@ module.exports = function (options = {}) {
|
|||
|
||||
if (!keyPath.length || !fs.existsSync(keyPath)) {
|
||||
log.error("Path to SSL key is invalid. Stopping server...");
|
||||
process.exit();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (!certPath.length || !fs.existsSync(certPath)) {
|
||||
log.error("Path to SSL certificate is invalid. Stopping server...");
|
||||
process.exit();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (caPath.length && !fs.existsSync(caPath)) {
|
||||
log.error("Path to SSL ca bundle is invalid. Stopping server...");
|
||||
process.exit();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
server = require("https");
|
||||
|
|
Loading…
Add table
Reference in a new issue