From d8143e1082ea35afc1d13b37a0e310e2426f6a2a Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sun, 29 Oct 2023 18:19:07 +0000 Subject: [PATCH] Fix: Fix `docker-entrypoint.sh` bugs when using `LISTEN_IP` or `LISTEN_PORT` --- generate/templates/docker-entrypoint.sh.ps1 | 6 ++---- .../v1.6.19-emailsender-alpine-3.8/docker-entrypoint.sh | 6 ++---- .../v1.6.19-emailsender-ubuntu-16.04/docker-entrypoint.sh | 6 ++---- variants/v1.6.19-geoip-alpine-3.8/docker-entrypoint.sh | 6 ++---- .../v1.6.19-geoip-geoip2-alpine-3.8/docker-entrypoint.sh | 6 ++---- .../docker-entrypoint.sh | 6 ++---- .../docker-entrypoint.sh | 6 ++---- .../docker-entrypoint.sh | 6 ++---- .../docker-entrypoint.sh | 6 ++---- .../v1.6.19-geoip-geoip2-ubuntu-16.04/docker-entrypoint.sh | 6 ++---- variants/v1.6.19-geoip-ubuntu-16.04/docker-entrypoint.sh | 6 ++---- 11 files changed, 22 insertions(+), 44 deletions(-) diff --git a/generate/templates/docker-entrypoint.sh.ps1 b/generate/templates/docker-entrypoint.sh.ps1 index 1a8c71d..8463fc2 100644 --- a/generate/templates/docker-entrypoint.sh.ps1 +++ b/generate/templates/docker-entrypoint.sh.ps1 @@ -80,16 +80,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-emailsender-alpine-3.8/docker-entrypoint.sh b/variants/v1.6.19-emailsender-alpine-3.8/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-emailsender-alpine-3.8/docker-entrypoint.sh +++ b/variants/v1.6.19-emailsender-alpine-3.8/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-emailsender-ubuntu-16.04/docker-entrypoint.sh b/variants/v1.6.19-emailsender-ubuntu-16.04/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-emailsender-ubuntu-16.04/docker-entrypoint.sh +++ b/variants/v1.6.19-emailsender-ubuntu-16.04/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-alpine-3.8/docker-entrypoint.sh b/variants/v1.6.19-geoip-alpine-3.8/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-alpine-3.8/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-alpine-3.8/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-geoip2-alpine-3.8/docker-entrypoint.sh b/variants/v1.6.19-geoip-geoip2-alpine-3.8/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-geoip2-alpine-3.8/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-geoip2-alpine-3.8/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-geoip2-emailsender-alpine-3.8/docker-entrypoint.sh b/variants/v1.6.19-geoip-geoip2-emailsender-alpine-3.8/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-geoip2-emailsender-alpine-3.8/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-geoip2-emailsender-alpine-3.8/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-geoip2-emailsender-curl-alpine-3.8/docker-entrypoint.sh b/variants/v1.6.19-geoip-geoip2-emailsender-curl-alpine-3.8/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-geoip2-emailsender-curl-alpine-3.8/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-geoip2-emailsender-curl-alpine-3.8/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-geoip2-emailsender-curl-ubuntu-16.04/docker-entrypoint.sh b/variants/v1.6.19-geoip-geoip2-emailsender-curl-ubuntu-16.04/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-geoip2-emailsender-curl-ubuntu-16.04/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-geoip2-emailsender-curl-ubuntu-16.04/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-geoip2-emailsender-ubuntu-16.04/docker-entrypoint.sh b/variants/v1.6.19-geoip-geoip2-emailsender-ubuntu-16.04/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-geoip2-emailsender-ubuntu-16.04/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-geoip2-emailsender-ubuntu-16.04/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-geoip2-ubuntu-16.04/docker-entrypoint.sh b/variants/v1.6.19-geoip-geoip2-ubuntu-16.04/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-geoip2-ubuntu-16.04/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-geoip2-ubuntu-16.04/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}" diff --git a/variants/v1.6.19-geoip-ubuntu-16.04/docker-entrypoint.sh b/variants/v1.6.19-geoip-ubuntu-16.04/docker-entrypoint.sh index 04623ee..2c27a74 100644 --- a/variants/v1.6.19-geoip-ubuntu-16.04/docker-entrypoint.sh +++ b/variants/v1.6.19-geoip-ubuntu-16.04/docker-entrypoint.sh @@ -79,16 +79,14 @@ if [ ! -z "${LOG_LEVEL}" ]; then fi fi [ ! -z "${MODE}" ] && set "$@" "--db-host=${MODE}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--ip=${LISTEN_PORT}" [ ! -z "${DB_HOST}" ] && set "$@" "--db-host=${DB_HOST}" [ ! -z "${DB_NAME}" ] && set "$@" "--db-name=${DB_NAME}" [ ! -z "${DB_USER}" ] && set "$@" "--db-username=${DB_USER}" [ ! -z "${DB_PASSWORD}" ] && set "$@" "--db-password=${DB_PASSWORD}" [ "${DNS_RESOLVE_IP}" = 'false' ] && set "$@" "--nodns-resolveip" [ ! -z "${DNS_RESOLVE_IP_TIMEOUT}" ] && set "$@" "--dns-timeout=${DNS_RESOLVE_IP_TIMEOUT}" -[ ! -z "${LISTEN_IP}" ] && set "$@" "--db-password=${LISTEN_IP}" -[ ! -z "${LISTEN_PORT}" ] && set "$@" "--db-password=${LISTEN_PORT}" +[ ! -z "${LISTEN_IP}" ] && set "$@" "--ip=${LISTEN_IP}" +[ ! -z "${LISTEN_PORT}" ] && set "$@" "--port=${LISTEN_PORT}" [ "${RCON}" = 'false' ] && set "$@" "--norcon" [ "${STDIN}" = 'true' ] && set "$@" "--stdin" [ ! -z "${STDIN_SERVER_IP}" ] && set "$@" "--server-ip=${STDIN_SERVER_IP}"