mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 20:39:31 +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
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$GID" ]
|
if [ "$GID" ] && [ "$GID" -ne "0" ]
|
||||||
then
|
then
|
||||||
GROUP=jdownloader
|
GROUP=jdownloader
|
||||||
groupadd -g $GID $GROUP
|
groupadd -g $GID $GROUP
|
||||||
|
|
@ -15,7 +15,7 @@ else
|
||||||
GROUP=root
|
GROUP=root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UID" ]
|
if [ "$UID" ] && [ "$UID" -ne "0" ]
|
||||||
then
|
then
|
||||||
USER=jdownloader
|
USER=jdownloader
|
||||||
useradd -r -N -s /bin/false -u $UID $USER
|
useradd -r -N -s /bin/false -u $UID $USER
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue