fix parseENV error

This commit is contained in:
KGT1 2020-09-18 03:30:29 +02:00
parent 85b1521cb9
commit 11c5c97f9c
2 changed files with 2 additions and 3 deletions

View File

@ -6,5 +6,4 @@ WORKDIR /app
RUN npm install RUN npm install
RUN npm run postinstall RUN npm run postinstall
CMD node parseENV.js CMD node parseENV.js && npm run start
CMD npm run start

View File

@ -5,7 +5,7 @@ const configfile = require(filename);
if(!configfile["discord-prefix"]) if(!configfile["discord-prefix"])
configfile["discord-prefix"]=process.env.DISCORD_PREFIX; configfile["discord-prefix"]=process.env.DISCORD_PREFIX;
if(!configfile["token"]) if(!configfile["token"])
onfigfile["token"]=process.env.DISCORD_TOKEN; configfile["token"]=process.env.DISCORD_TOKEN;
if(!configfile["server-adress"]) if(!configfile["server-adress"])
configfile["server-adress"]=process.env.JELLYFIN_SERVER_ADDRESS; configfile["server-adress"]=process.env.JELLYFIN_SERVER_ADDRESS;
if(!configfile["jellyfin-username"]) if(!configfile["jellyfin-username"])