I have one request.
On FreeBSD, check if p5-Net-SSLeay is already installed, before trying to call pkg.
Quite a few admins use the ports package management and that command
pkg install -y p5-Net-SSLeay
will break things.
Also, the shebang in installer.sh should be updated to
/usr/bin/env bash