mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
add raw end raw back
This commit is contained in:
@@ -517,6 +517,8 @@ valid_int() {
|
||||
[[ $num =~ ^[0-9]*$ ]] && [[ $num -ge $min ]] && [[ $num -le $max ]] && return 0 || return 1
|
||||
}
|
||||
|
||||
# {% raw %}
|
||||
|
||||
valid_proxy() {
|
||||
local proxy=$1
|
||||
local url_prefixes=( 'http://' 'https://' )
|
||||
@@ -559,6 +561,8 @@ valid_string() {
|
||||
echo "$str" | grep -qP '^\S+$' && [[ ${#str} -ge $min_length ]] && [[ ${#str} -le $max_length ]] && return 0 || return 1
|
||||
}
|
||||
|
||||
# {% endraw %}
|
||||
|
||||
valid_username() {
|
||||
local user=$1
|
||||
|
||||
|
||||
@@ -195,6 +195,8 @@ check_airgap() {
|
||||
fi
|
||||
}
|
||||
|
||||
# {% raw %}
|
||||
|
||||
check_local_mods() {
|
||||
local salt_local=/opt/so/saltstack/local
|
||||
|
||||
@@ -222,6 +224,8 @@ check_local_mods() {
|
||||
fi
|
||||
}
|
||||
|
||||
# {% endraw %}
|
||||
|
||||
check_pillar_items() {
|
||||
local pillar_output=$(salt-call pillar.items --out=json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user