Fix case where UID and GID are passed and added a test for that case.

This commit is contained in:
PlusMinus0 2018-11-22 10:11:53 +01:00
parent fcac3155a3
commit 2a98e037bb
6 changed files with 58 additions and 25 deletions

View file

@ -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