Fixed wrong condition, thanks @joshdata
This commit is contained in:
parent
794a52d042
commit
8c38ba1f00
|
@ -102,7 +102,7 @@ if [ -z "$STORAGE_ROOT" ]; then
|
|||
fi
|
||||
|
||||
# Create the STORAGE_USER if it not exists
|
||||
if [ ! $(id -u $STORAGE_USER >/dev/null 2>&1;) ]; then
|
||||
if ! id -u $STORAGE_USER >/dev/null 2>&1; then
|
||||
useradd -m $STORAGE_USER
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue