vagrant: Ensure the whats_next message is printed at the end
The tinkerbell.sh script ends up doing some other work after calling setup.sh and has set -x enabled so the whats_next message is likely to be missed. So now save it for later reading as the last thing done. Signed-off-by: Manuel Mendez <mmendez@equinix.com>
This commit is contained in:
parent
51777df36c
commit
4a59c96463
@ -51,6 +51,9 @@ main() (
|
|||||||
|
|
||||||
secure_certs
|
secure_certs
|
||||||
configure_vagrant_user
|
configure_vagrant_user
|
||||||
|
|
||||||
|
set +x # don't want the stderr output from xtrace messing with the post-setup-message
|
||||||
|
[[ -f /tmp/post-setup-message ]] && cat /tmp/post-setup-message
|
||||||
)
|
)
|
||||||
|
|
||||||
main
|
main
|
||||||
|
2
setup.sh
2
setup.sh
@ -503,7 +503,7 @@ do_setup() (
|
|||||||
setup_docker_registry
|
setup_docker_registry
|
||||||
|
|
||||||
echo "$INFO tinkerbell stack setup completed successfully on $lsb_dist server"
|
echo "$INFO tinkerbell stack setup completed successfully on $lsb_dist server"
|
||||||
whats_next
|
whats_next | tee /tmp/post-setup-message
|
||||||
)
|
)
|
||||||
|
|
||||||
# wrapped up in a function so that we have some protection against only getting
|
# wrapped up in a function so that we have some protection against only getting
|
||||||
|
Loading…
Reference in New Issue
Block a user