Fixed wrong condition, thanks @joshdata

This commit is contained in:
H8H 2015-02-03 17:27:28 +01:00
parent 794a52d042
commit 8c38ba1f00
1 changed files with 1 additions and 1 deletions

View File

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