mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix Features script
This commit is contained in:
@@ -20,11 +20,12 @@ local_salt_dir=/opt/so/saltstack/local
|
|||||||
manager_check() {
|
manager_check() {
|
||||||
# Check to see if this is a manager
|
# Check to see if this is a manager
|
||||||
MANAGERCHECK=$(cat /etc/salt/grains | grep role | awk '{print $2}')
|
MANAGERCHECK=$(cat /etc/salt/grains | grep role | awk '{print $2}')
|
||||||
if [ $MANAGERCHECK == 'so-eval' OR $MANAGERCHECK == 'so-manager' OR $MANAGERCHECK == 'so-managersearch' ]; then
|
if [[ "$MANAGERCHECK" =~ ^('so-eval'|'so-manager'|'so-standalone'|'so-managersearch')$ ]]; then
|
||||||
echo "This is a manager. We can proceed."
|
echo "This is a manager. We can proceed"
|
||||||
else
|
else
|
||||||
echo "Please run so-features-enable on the manager."
|
echo "Please run so-features-enable on the manager."
|
||||||
exit 0
|
exit 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
manager_check
|
manager_check
|
||||||
|
|||||||
Reference in New Issue
Block a user