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"])