Yes, that is action script. If you’re not already familiar with it, then Distribution might be best.
@JasonWalker’s advice in this other thread might be instructive.
I suggest starting with a simple shell script that sends output to a file, so that you can see what’s going on when Distribution executes a shell script.
- Start with a script that only touches a file; does that work?
- Have the script print its working directory to an output file. That tells you the file path where Distribution executes from.
- Have the script print the location of the script itself. (You can do this with bash variables.)
Having built the familiarity about Distribution’s shell environment, an adept shell scripter should be able to make the installer do what it needs.
(Unfortunately, I think you’ve discovered that using shell scripts with Distribution isn’t a common usecase on the forum.)