Skip to content

Commit

Permalink
Merge pull request #18 from xduseko/master
Browse files Browse the repository at this point in the history
Start script fix
  • Loading branch information
PlusMinus0 committed Jul 2, 2018
2 parents 2374e09 + 41fee5b commit 6283d23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions startJD2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
if [ "$GID" ] && [ "$GID" -ne "0" ]
then
GROUP=jdownloader
groupadd -g $GID $GROUP
addgroup -g $GID $GROUP
else
GROUP=root
fi

if [ "$UID" ] && [ "$UID" -ne "0" ]
then
USER=jdownloader
useradd -r -N -s /bin/false -u $UID $USER
adduser -S -D -s /bin/false -u $UID $USER
else
USER=root
fi

useradd -G $GROUP $USER
adduser -G $GROUP $USER
chown -R $USER:$GROUP /opt/JDownloader

exec su-exec ${USER}:${GROUP} "$@"
Expand Down

0 comments on commit 6283d23

Please sign in to comment.