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

Force regen of ssl cert
This commit is contained in:
Josh Brower authored and GitHub committed 2022-03-16 15:17:05 -04:00
commit 5b9c82a434
1 file changed
+2
+2
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')"