When using pastebin for provisioning scripts, the file does not work as pastebin adds \r to every line ending, resulting in a script that does not work.
A simple solution could be to remove all \r when the provisioningscript url contains pastebin.com.
https://www.koszek.com/blog/2015/10/05/pastebin-adds-dos-newline-on-snippet/