From 5e0f5ecc3bbb0b78bae3cd3704fdcd1272e589ad Mon Sep 17 00:00:00 2001 From: PlusMinus Date: Mon, 17 Aug 2015 16:30:01 +0200 Subject: [PATCH] Some changes as suggested by JD's Jiaz: - Send another user agent with wget - Strip down needed information for my.jdownloader settings file --- Dockerfile | 2 +- README.md | 20 +------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index d391bf2..3ce0ba8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ MAINTAINER PlusMinus # Create directory, downloader JD" and start JD2 for the initial update and creation of config files. RUN \ mkdir /opt/JDownloader/ && \ - wget -O /opt/JDownloader/JDownloader.jar --progress=bar:force http://installer.jdownloader.org/JDownloader.jar && \ + wget -O /opt/JDownloader/JDownloader.jar --user-agent="https://hub.docker.com/r/plusminus/jdownloader2-headless/" --progress=bar:force http://installer.jdownloader.org/JDownloader.jar && \ java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar diff --git a/README.md b/README.md index 48b6c08..0a1507e 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,7 @@ Headless JDownloader 2 Docker Container 1. Create a folder on your host for the configuration files (eg. sudo mkdir /config/jd2) 2. run `docker run -d --name jd2 -v /config/jd2:/opt/JDownloader/cfg -v /home/user/Downloads:/root/Downloads plusminus/jdownloader2-headless` 3. stop the container `docker stop jd2` -4. On your host, edit the file `org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json` to match the content below +4. On your host, enter your credentials to the file `org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json` as in `{ "password" : "mypasswort", "email" : "email@home.org" }` 5. Start the container -`{ - "uniquedeviceidsaltv2" : "i don't know whats supposed to be in here", - "autoconnectenabledv2" : true, - "debugenabled" : false, - "lastupnpport" : 0, - "lastlocalport" : 58103, - "connectip" : "api.jdownloader.org", - "latesterror" : "NONE", - "manuallocalport" : 3129, - "password" : "mypasswort", - "clientconnectport" : 80, - "directconnectmode" : "LAN", - "devicename" : "JDownloader@docker", - "manualremoteport" : 3129, - "uniquedeviceidv2" : "same as above", - "email" : "email@home.org" -}` -