quotes on vars

This commit is contained in:
m0duspwnens
2024-06-11 16:32:57 -04:00
parent 2ecac38f6d
commit 88fc1bbe32

View File

@@ -312,8 +312,8 @@ disable_logstash_heavynodes() {
c=0 c=0
printf "\nChecking for heavynodes and disabling Logstash if they exist\n" printf "\nChecking for heavynodes and disabling Logstash if they exist\n"
for file in /opt/so/saltstack/local/pillar/minions/*.sls; do for file in /opt/so/saltstack/local/pillar/minions/*.sls; do
if [[ $file =~ "_heavynode.sls" && ! $file =~ "/opt/so/saltstack/local/pillar/minions/adv_" ]]; then if [[ "$file" =~ "_heavynode.sls" && ! "$file" =~ "/opt/so/saltstack/local/pillar/minions/adv_" ]]; then
if [ $c -eq 0 ]; then if [ "$c" -eq 0 ]; then
((c++)) ((c++))
FINAL_MESSAGE_QUEUE+=("Logstash has been disabled on all heavynodes. It can be re-enabled via Grid Configuration in SOC.") FINAL_MESSAGE_QUEUE+=("Logstash has been disabled on all heavynodes. It can be re-enabled via Grid Configuration in SOC.")
fi fi