@JayDuff Its been a while since you asked the question, but here it goes
anyways. The results you are getting from your script seem to be
accurate. Running java --version in terminal look for the JSE and will
try to install if its not found. This scr...
@scharman Did you get this resolved? I'm running into the same problem.
The pkg installs the config file but then the postinstall script doesn't
install it as a profile. However if I run the same line on terminal it
goes thru without a problem.