From 11c5c97f9c0b1e11111be490c24217e05adc5596 Mon Sep 17 00:00:00 2001 From: KGT1 Date: Fri, 18 Sep 2020 03:30:29 +0200 Subject: [PATCH] fix parseENV error --- Dockerfile | 3 +-- parseENV.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 16df203..682c39b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,4 @@ WORKDIR /app RUN npm install RUN npm run postinstall -CMD node parseENV.js -CMD npm run start \ No newline at end of file +CMD node parseENV.js && npm run start \ No newline at end of file diff --git a/parseENV.js b/parseENV.js index 3524bf7..0c1655d 100644 --- a/parseENV.js +++ b/parseENV.js @@ -5,7 +5,7 @@ const configfile = require(filename); if(!configfile["discord-prefix"]) configfile["discord-prefix"]=process.env.DISCORD_PREFIX; if(!configfile["token"]) - onfigfile["token"]=process.env.DISCORD_TOKEN; + configfile["token"]=process.env.DISCORD_TOKEN; if(!configfile["server-adress"]) configfile["server-adress"]=process.env.JELLYFIN_SERVER_ADDRESS; if(!configfile["jellyfin-username"])