Simple problem. openfire.sh in (3.10.0 alpha) uses /bin/sh but uses the bash builtin command shopt.
So you are suggesting a change to use #!/bin/bash ?
Every Unix-based system I use has bash. If it was me, I’d just use #!/bin/bash.
But I’m not in the business of maintaining web server installation scripts.