mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 18:59:29 +00:00
Fix case where UID and GID are passed and added a test for that case.
This commit is contained in:
parent
fcac3155a3
commit
2a98e037bb
6 changed files with 58 additions and 25 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Set defaults for uid and gid to not be root
|
||||
if [ -n $GID ]; then GID=100; fi
|
||||
if [ -n $UID ]; then UID=1000; fi
|
||||
if [ -z $GID ]; then GID=100; fi
|
||||
if [ -z $UID ]; then UID=1000; fi
|
||||
|
||||
if [ "$GID" -ne "0" ]; then
|
||||
GROUP=jdownloader
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue