Skip to content

Commit

Permalink
Fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
antlafarge committed Jul 16, 2024
1 parent c94fc54 commit 09bf036
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,19 @@ if [ ! -f $myJDownloaderSettingsFile ]; then
fi
fi

if [ -n "$setup_email" ]; then
if [ -n "$JD_EMAIL" ]; then
log "Replace JDownloader email in myJDownloader settings file"
replaceJsonValue $myJDownloaderSettingsFile "email" "$setup_email"
replaceJsonValue $myJDownloaderSettingsFile "email" "$JD_EMAIL"
fi

if [ -n "$setup_password" ]; then
if [ -n "$JD_PASSWORD" ]; then
log "Replace JDownloader password in myJDownloader settings file"
replaceJsonValue $myJDownloaderSettingsFile "password" "$setup_password"
replaceJsonValue $myJDownloaderSettingsFile "password" "$JD_PASSWORD"
fi

if [ -n "$setup_devicename" ]; then
if [ -n "$JD_DEVICENAME" ]; then
log "Replace JDownloader devicename in myJDownloader settings file"
replaceJsonValue $myJDownloaderSettingsFile "devicename" "$setup_devicename"
replaceJsonValue $myJDownloaderSettingsFile "devicename" "$JD_DEVICENAME"
fi

groupEnd
Expand Down

0 comments on commit 09bf036

Please sign in to comment.