mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 21:59:30 +00:00
The JDownloader is now being run as a normal user.
This commit is contained in:
parent
3803e52cab
commit
fbfc22b847
2 changed files with 8 additions and 1 deletions
|
|
@ -2,6 +2,10 @@ 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 \
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,10 @@ function stopJD2 {
|
||||||
|
|
||||||
trap stopJD2 EXIT
|
trap stopJD2 EXIT
|
||||||
|
|
||||||
java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &
|
# 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 &'
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
sleep inf
|
sleep inf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue