1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-12-14 06:19:21 +00:00

feat: display container version

This commit is contained in:
Nicolas Duchon
2022-01-11 22:38:30 +01:00
parent fde0e809e4
commit fbf37456d0
4 changed files with 29 additions and 14 deletions

View File

@@ -29,6 +29,12 @@ function _parse_false() {
esac
}
function _print_version {
if [[ -n "${NGINX_PROXY_VERSION:-}" ]]; then
echo "Info: running nginx-proxy version ${NGINX_PROXY_VERSION}"
fi
}
function _check_unix_socket() {
# Warn if the DOCKER_HOST socket does not exist
if [[ ${DOCKER_HOST} == unix://* ]]; then
@@ -96,6 +102,8 @@ function _setup_dhparam() {
# Run the init logic if the default CMD was provided
if [[ $* == 'forego start -r' ]]; then
_print_version
_check_unix_socket
_resolvers