Added check to getKey, checks if key was added through env variable, if it is, it skips prompting for the password. This should make it so creating docker images is easier

This commit is contained in:
subnub
2020-03-08 13:48:48 -04:00
parent 8a131bcb7a
commit 45a4509525
2 changed files with 6 additions and 1 deletions
Vendored
BIN
View File
Binary file not shown.
+6 -1
View File
@@ -4,7 +4,12 @@ const crypto = require("crypto");
const getKey = async() => {
if (process.env.NODE_ENV) {
if (process.env.KEY) {
// For Docker
env.key = process.env.KEY
} else if (process.env.NODE_ENV) {
let password = await prompt("Enter Server Encryption Password: ", {method: "hide"});