Sorry for making late attempt. I tried again and analyzed it. The attached log image says, " /bin/bash: line 1: $: command not found" but "/bin/bash" exists.
As per log, the following is the place it breaks with exit code 127:
"/bin/bash -c "$installerSourceDir$ + "/new_touch_script.sh" || exit $?""
The following worked fine on the terminal:
"/bin/bash -c /tmp/new_touch_script.sh" || exit $?" (this working fine)
As you suggested, tried the package locally with opsi-script, and it breaks in the same place mentioned above.
Attached opsi-script log file. Eagerly waiting for your reply.
Edited again to attach the missed log file.
Regards,
arul