entrypoint: wrap main code in a function
entrypoint: wrap main code in a function

As preparation for upcoming changes, move the main code of entrypoint.sh
into functions. Best viewed by ignore whitespace.

Signed-off-by: John Mulligan <eda8ad33169deab44f9fe65847f99e368da6c91b@redhat.com>

ceph/go-ceph,ceph/go-ceph,ceph/go-ceph