Readdad inf loop and forking because I’m sure I had reasons tha last time I did it.

This commit is contained in:
PlusMinus0 2017-09-20 18:18:54 +02:00
parent 0173222fb1
commit 27b22ae05a

View file

@ -18,19 +18,19 @@ fi
if [ "$UID" ]
then
USER=jdownloader
useradd -r -s /bin/false -u $UID -g $GROUP $USER
chown -R $USER:$GROUP /opt/JDownloader
useradd -r -s /bin/false -u $UID $USER
else
USER=root
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
su -c "java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &" -s /bin/bash $USER
#java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar &
#while true; do
# sleep inf
#done
while true; do
sleep inf
done