From 0182109d09df4d429a135fa24ed9311a504096b0 Mon Sep 17 00:00:00 2001 From: PlusMinus Date: Tue, 1 Sep 2015 16:27:39 +0200 Subject: [PATCH] Revert "The JDownloader is now being run as a normal user." This reverts commit fbfc22b847f7234708e659643059a3bf2988588c. --- Dockerfile | 4 ---- startJD2.sh | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 237d0db..659c9e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,6 @@ FROM java:jre MAINTAINER PlusMinus -# For running the JDownloder as a normal user -ENV UID=1000 -ENV GID=1000 - # Create directory, downloader JD" and start JD2 for the initial update and creation of config files. RUN \ diff --git a/startJD2.sh b/startJD2.sh index 8913f33..99c32c9 100755 --- a/startJD2.sh +++ b/startJD2.sh @@ -9,10 +9,7 @@ function stopJD2 { trap stopJD2 EXIT -# Add a user to run the jdownloader -useradd -M --uid $UID --gid $GID jduser - -su jduser -c 'java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &' +java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar & while true; do sleep inf