mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-22 12:41:55 +02:00
Rename functions to avoid naming conflict with setup vars
This commit is contained in:
@@ -157,7 +157,7 @@ set_version() {
|
||||
}
|
||||
|
||||
require_manager() {
|
||||
if is_manager; then
|
||||
if is_manager_node; then
|
||||
echo "This is a manager, We can proceed."
|
||||
else
|
||||
echo "Please run this command on the manager; the manager controls the grid."
|
||||
@@ -165,7 +165,7 @@ require_manager() {
|
||||
fi
|
||||
}
|
||||
|
||||
is_manager() {
|
||||
is_manager_node() {
|
||||
# Check to see if this is a manager node
|
||||
role=$(lookup_role)
|
||||
is_single_node_grid && return 0
|
||||
@@ -175,7 +175,7 @@ is_manager() {
|
||||
return 1
|
||||
}
|
||||
|
||||
is_sensor() {
|
||||
is_sensor_node() {
|
||||
# Check to see if this is a sensor (forward) node
|
||||
role=$(lookup_role)
|
||||
is_single_node_grid && return 0
|
||||
|
||||
Reference in New Issue
Block a user