It's not corrupted, it's a self-extracting shell "archive" with installer logic created with
makeself.
You can
Code:
export SYSTEMINITDAEMON=upstart
before you run the installer, then you wouldn't have to modify the script at all I think.
Cheers,
Michal