The JDownloader is now being run as a normal user.

This commit is contained in:
PlusMinus 2015-09-01 15:48:44 +02:00
parent 3803e52cab
commit fbfc22b847
2 changed files with 8 additions and 1 deletions

View file

@ -9,7 +9,10 @@ function stopJD2 {
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
sleep inf