Fix location for files

This commit is contained in:
Mike Reeves
2020-05-05 23:02:50 -04:00
parent 13e067c20a
commit 77b07bb6f8

View File

@@ -708,7 +708,7 @@ fireeye_pillar() {
# Generate Firewall Templates
firewall_generate_templates() {
local firewall_pillar_path=/opt/so/saltstack/salt/firewall
local firewall_pillar_path=/opt/so/saltstack/salt/firewall/
mkdir -p "$firewall_pillar_path"
for i in analyst beats_endpoint forward_nodes masterfw minions osquery_endpoints search_nodes wazuh_endpoint
@@ -716,7 +716,8 @@ firewall_generate_templates() {
printf '%s\n'\
"$i:"\
" - 127.0.0.1"\
"" > "$firewall_pillar_path"/$i.sls
"" > "$firewall_pillar_path"$i.sls
echo "Added $i Template"
done
}