mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 21:59:30 +00:00
Merge pull request #9 from thelittlefireman/master
UID=0 or GID=0 will set default user or group respectively to root.
This commit is contained in:
commit
da75fcec18
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ function stopJD2 {
|
|||
exit
|
||||
}
|
||||
|
||||
if [ "$GID" ]
|
||||
if [ "$GID" ] && [ "$GID" -ne "0" ]
|
||||
then
|
||||
GROUP=jdownloader
|
||||
groupadd -g $GID $GROUP
|
||||
|
|
@ -15,7 +15,7 @@ else
|
|||
GROUP=root
|
||||
fi
|
||||
|
||||
if [ "$UID" ]
|
||||
if [ "$UID" ] && [ "$UID" -ne "0" ]
|
||||
then
|
||||
USER=jdownloader
|
||||
useradd -r -N -s /bin/false -u $UID $USER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue