Merge pull request #7494 from Security-Onion-Solutions/fix/fleetdm-custom-hostname

Force regen of ssl cert
This commit is contained in:
Josh Brower
2022-03-16 15:17:05 -04:00
committed by GitHub

View File

@@ -918,6 +918,8 @@ echo "1" > /root/accept_changes
set_progress_str 77 "$(print_salt_state_apply 'fleet.event_update-custom-hostname')"
pillar_override="{\"global\":{\"fleet_custom_hostname\": \"$FLEETCUSTOMHOSTNAME\"}}"
salt-call state.apply -l info fleet.event_update-custom-hostname pillar="$pillar_override" >> $setup_log 2>&1
rm -f /etc/pki/managerssl.crt
salt-call state.apply -l info ssl >> $setup_log 2>&1
fi
set_progress_str 78 "$(print_salt_state_apply 'so-fleet-setup')"