mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 20:39:31 +00:00
Revert "The JDownloader is now being run as a normal user."
This reverts commit fbfc22b847.
This commit is contained in:
parent
4112183a38
commit
0182109d09
2 changed files with 1 additions and 8 deletions
|
|
@ -2,10 +2,6 @@ FROM java:jre
|
|||
|
||||
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.
|
||||
RUN \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue