Fix location for files

This commit is contained in:
Mike Reeves
2020-05-05 23:31:34 -04:00
parent 77b07bb6f8
commit 88df4cc7ae

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/pillar/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,7 @@ 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
}