mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 20:39:31 +00:00
adjust to upstream codebase
This commit is contained in:
parent
3df21d4382
commit
29f0ebaa0f
2 changed files with 5 additions and 17 deletions
15
startJD2.sh
15
startJD2.sh
|
|
@ -1,12 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
function stopJD2 {
|
||||
PID=$(cat JDownloader.pid)
|
||||
kill $PID
|
||||
wait $PID
|
||||
exit
|
||||
}
|
||||
|
||||
if [ "$GID" ] && [ "$GID" -ne "0" ]
|
||||
then
|
||||
GROUP=jdownloader
|
||||
|
|
@ -26,11 +19,5 @@ fi
|
|||
useradd -G $GROUP $USER
|
||||
chown -R $USER:$GROUP /opt/JDownloader
|
||||
|
||||
trap stopJD2 EXIT
|
||||
|
||||
su -c "java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &" -s /bin/bash $USER
|
||||
|
||||
while true; do
|
||||
sleep inf
|
||||
done
|
||||
exec su-exec "$@"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue