skyhighmac Posted August 17, 2008 Share Posted August 17, 2008 Hey guys, For my app, I use package maker to throw together a package, and all goes smoothly except for one thing - I cannot get the postflight installer scripts to run. Do I need to put them in a special place? Really confused.. Thanks for your help, -skyhighmac Link to comment https://www.insanelymac.com/forum/topic/121533-post-flight-installer-scripts/ Share on other sites More sharing options...
~pcwiz Posted August 19, 2008 Share Posted August 19, 2008 What I do to make shell scripts work is I write the script (#!/bin/bash or #!/bin/sh) and then save it as a .sh file. Then, open Terminal and cd to the dir that the shell script is stored in and type in "sudo chmod +x myscript.sh", change myscript.sh to whatever your script name is. This step is not necessary, neither is saving it as a .sh file (.txt would work theoretically too) but that's the method I use. Once you have the script saved and chmodded then open Package Maker, choose your item, and click the Scripts tab. Set the "Script Directory" to the parent directory that you store your scripts in. Then for the post install script choose your shell script file and it should be just fine. If you still have the problem, its a problem with your script not completing properly. Also, make sure that in packagemaker, you have it set to use administrator privileges. That could be the reason why its not completing, lack of proper privileges. Link to comment https://www.insanelymac.com/forum/topic/121533-post-flight-installer-scripts/#findComment-861445 Share on other sites More sharing options...
Recommended Posts