add -p option to mkdir in so-elastic-fleet-setup

This commit is contained in:
Doug Burks
2022-12-10 08:20:38 -05:00
committed by GitHub
parent 187ca4c453
commit de2427cabe

View File

@@ -20,7 +20,7 @@ curl -K /opt/so/conf/elasticsearch/curl.config -L -X PUT "localhost:5601/api/fle
printf "\n\n"
# Create Logstash Output payload
mkdir /opt/so/conf/elastic-fleet/certs
mkdir -p /opt/so/conf/elastic-fleet/certs
cp /etc/ssl/certs/intca.crt /opt/so/conf/elastic-fleet/certs
cp /etc/pki/elasticfleet* /opt/so/conf/elastic-fleet/certs
LOGSTASHCRT=$(openssl x509 -in /opt/so/conf/elastic-fleet/certs/elasticfleet.crt)
@@ -85,4 +85,4 @@ wget -P /opt/so/saltstack/default/salt/elastic-fleet/files/elastic-agent/ https:
#docker build -t so-elastic-agent-builder .
so-elastic-agent-gen-installers
salt-call state.apply elastic-fleet.install_agent_grid
salt-call state.apply elastic-fleet.install_agent_grid