mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 18:59:29 +00:00
fix somtimes force to jdownloader user
Exemple on synology docker interface env variable can't be empty and even if i put 0 to UID and GID this script force to "jdownloader user" and after that i've got some error (cannot access to download directory)
This commit is contained in:
parent
7e696d6fee
commit
7cbcde75f8
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