I did clean it up with dos2unix, and it got rid of the error, but it still will not trigger the transfer. I can trigger it manually from within server-manager screen, or from the command line.
I am still playing with the original dungog version, but with the cleaned up template.
OK, but see my notes on the bug.
Simply cleaning the template is not the end of the problem. It might be a quick fix, but not a long term solution, and isn't really a fix in any event.
I'll try and see if I can get something better over the next few days, work allowing. But you aren't ever going to get it working properly doing what you are at the minute. A lot of the code is EXTREMELY old and needs an axe through it.
Don't waste your time on it.
I'll do what I can - watch the bug.