test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."
Here is what the above code is Doing:
1. Check if the openssl binary is in the expected location.
2. If it is, then we’re using the self-contained installation.
3. If it isn’t, then we’re using the system packages.