After.sh.erb: wait until script.sh.erb finishes

What’s the best way to stop the connection card from switching to “running” until the script.sh.erb file reaches the /proc/$pid check? A port isn’t being opened by the application as it works in conjunction with another OOD app, so I can’t check for a specific port.

One of the last things done in the script.sh.erb is create a directory. Is there a way for the after.sh.erb to check if a directory exists?

Sure yea you can do anything in the after.sh.erb, it’s a shell script after all. Just have it block until you’re ready to move on.