Switch inline provision script to heredoc.

This makes the script run as one command rather than several.