check for bad seafile sys username
This commit is contained in:
parent
b9aa8d33f4
commit
6c5ea52c68
@ -172,8 +172,12 @@ while [ $# -gt 0 ]; do
|
||||
-u|--user|--seafuser)
|
||||
# name of seafile system user
|
||||
if [ -n "$2" ]; then
|
||||
if ! id "$2" > /dev/null 2>&1; then
|
||||
badParam user "$@"
|
||||
else
|
||||
seafUser="${2%/}"
|
||||
shift
|
||||
fi
|
||||
else
|
||||
badParam empty "$@"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user