Skip to content

Commit

Permalink
Fix docker-point
Browse files Browse the repository at this point in the history
  • Loading branch information
antlafarge committed Jul 16, 2024
1 parent c1b4e6d commit d2e6646
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ installFile "extensions.requestedinstalls.json" "./update/versioninfo/JD/"
if [ -n "$JD_EMAIL" ]; then
log "Set JDownloader email"
replaceJsonValue "./cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json" "email" "$JD_EMAIL"
exitCode=$?
if [ $exitCode -ne 0 ]; then
fatal $exitCode "Set JD email failed"
fi
Expand All @@ -123,6 +124,7 @@ fi
if [ -n "$JD_PASSWORD" ]; then
log "Set JDownloader password"
replaceJsonValue "./cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json" "password" "$JD_PASSWORD"
exitCode=$?
if [ $exitCode -ne 0 ]; then
fatal $exitCode "Set JD password failed"
fi
Expand All @@ -131,6 +133,7 @@ fi
if [ -n "$JD_DEVICENAME" ]; then
log "Set JDownloader devicename"
replaceJsonValue "./cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json" "devicename" "$JD_DEVICENAME"
exitCode=$?
if [ $exitCode -ne 0 ]; then
fatal $exitCode "Set JD device name failed"
fi
Expand Down

0 comments on commit d2e6646

Please sign in to comment.