Skip to content

Commit

Permalink
Fix LOG_LEVEL environment variable to map onto command line argumen…
Browse files Browse the repository at this point in the history
…t -dd in docker-entrypoint.sh
  • Loading branch information
leojonathanoh committed Jul 14, 2020
1 parent 3a80a10 commit 692a1b0
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions generate/templates/docker-entrypoint.sh.ps1
Expand Up @@ -72,9 +72,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/cron-emailsender/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/cron-geoip-geoip2/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/cron-geoip/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/cron/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/emailsender/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/geoip-geoip2-emailsender/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/geoip-geoip2/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/alpine/geoip/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/cron-emailsender/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/cron-geoip-geoip2/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/cron-geoip/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/cron/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/emailsender/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/geoip-geoip2-emailsender/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/geoip-geoip2/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down
4 changes: 2 additions & 2 deletions variants/ubuntu/geoip/docker-entrypoint.sh
Expand Up @@ -71,9 +71,9 @@ if [ ! -z "${LOG_LEVEL}" ]; then
if [ "${LOG_LEVEL}" = '0' ]; then
set "$@" "-n"
elif [ "${LOG_LEVEL}" = '1' ]; then
:
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-d"
elif [ "${LOG_LEVEL}" = '2' ]; then
set "$@" "-dd"
else
:
fi
Expand Down

0 comments on commit 692a1b0

Please sign in to comment.