mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
rename role
This commit is contained in:
@@ -69,22 +69,22 @@ while [[ $# -gt 0 ]]; do
|
|||||||
case "$param" in
|
case "$param" in
|
||||||
--id)
|
--id)
|
||||||
id=$1
|
id=$1
|
||||||
[[ ${#id} -gt 55 ]] && fail("id cannot be longer than 55 characters")
|
[[ ${#id} -gt 55 ]] && fail "id cannot be longer than 55 characters"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--permission)
|
--permission)
|
||||||
perm=$1
|
perm=$1
|
||||||
[[ ${#perm} -gt 50 ]] && fail("permission cannot be longer than 50 characters")
|
[[ ${#perm} -gt 50 ]] && fail "permission cannot be longer than 50 characters"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--name)
|
--name)
|
||||||
name=$1
|
name=$1
|
||||||
[[ ${#name} -gt 50 ]] && fail("name cannot be longer than 50 characters")
|
[[ ${#name} -gt 50 ]] && fail "name cannot be longer than 50 characters"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--note)
|
--note)
|
||||||
note=$1
|
note=$1
|
||||||
[[ ${#note} -gt 50 ]] && fail("note cannot be longer than 500 characters")
|
[[ ${#note} -gt 50 ]] && fail "note cannot be longer than 500 characters"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--json)
|
--json)
|
||||||
|
|||||||
Reference in New Issue
Block a user