Revert "The JDownloader is now being run as a normal user."

This reverts commit fbfc22b847.
This commit is contained in:
PlusMinus 2015-09-01 16:27:39 +02:00
parent 4112183a38
commit 0182109d09
2 changed files with 1 additions and 8 deletions

View file

@ -2,10 +2,6 @@ FROM java:jre
MAINTAINER PlusMinus <piddlpiddl@gmail.com> MAINTAINER PlusMinus <piddlpiddl@gmail.com>
# 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. # Create directory, downloader JD" and start JD2 for the initial update and creation of config files.
RUN \ RUN \

View file

@ -9,10 +9,7 @@ function stopJD2 {
trap stopJD2 EXIT trap stopJD2 EXIT
# Add a user to run the jdownloader java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &
useradd -M --uid $UID --gid $GID jduser
su jduser -c 'java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &'
while true; do while true; do
sleep inf sleep inf