From 57b1df6596cb23b15acdd5692adc073765f362f8 Mon Sep 17 00:00:00 2001 From: MarlinMr <51798819+MarlinMr@users.noreply.github.com> Date: Tue, 10 Aug 2021 13:23:05 +0200 Subject: [PATCH] Misspelling of environment variable (#220) --- examples/compose/docker-compose.yml | 2 +- examples/rrdcached-server/docker-compose.yml | 2 +- examples/traefik/docker-compose.yml | 2 +- rootfs/etc/cont-init.d/04-svc-main.sh | 4 ++-- rootfs/etc/cont-init.d/07-svc-cron.sh | 4 ++-- rootfs/etc/cont-init.d/08-svc-snmptrapd.sh | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/compose/docker-compose.yml b/examples/compose/docker-compose.yml index cde6eae..b6b6e0b 100644 --- a/examples/compose/docker-compose.yml +++ b/examples/compose/docker-compose.yml @@ -168,5 +168,5 @@ services: - "DB_USER=${MYSQL_USER}" - "DB_PASSWORD=${MYSQL_PASSWORD}" - "DB_TIMEOUT=60" - - "SIDECAR_SNNMPTRAPD=1" + - "SIDECAR_SNMPTRAPD=1" restart: always diff --git a/examples/rrdcached-server/docker-compose.yml b/examples/rrdcached-server/docker-compose.yml index 04ecbbe..b952bd9 100644 --- a/examples/rrdcached-server/docker-compose.yml +++ b/examples/rrdcached-server/docker-compose.yml @@ -186,5 +186,5 @@ services: - "DB_USER=${MYSQL_USER}" - "DB_PASSWORD=${MYSQL_PASSWORD}" - "DB_TIMEOUT=60" - - "SIDECAR_SNNMPTRAPD=1" + - "SIDECAR_SNMPTRAPD=1" restart: always diff --git a/examples/traefik/docker-compose.yml b/examples/traefik/docker-compose.yml index 4d77cd6..7d7a146 100644 --- a/examples/traefik/docker-compose.yml +++ b/examples/traefik/docker-compose.yml @@ -194,5 +194,5 @@ services: - "DB_USER=${MYSQL_USER}" - "DB_PASSWORD=${MYSQL_PASSWORD}" - "DB_TIMEOUT=60" - - "SIDECAR_SNNMPTRAPD=1" + - "SIDECAR_SNMPTRAPD=1" restart: always diff --git a/rootfs/etc/cont-init.d/04-svc-main.sh b/rootfs/etc/cont-init.d/04-svc-main.sh index 8271cb5..20268bb 100644 --- a/rootfs/etc/cont-init.d/04-svc-main.sh +++ b/rootfs/etc/cont-init.d/04-svc-main.sh @@ -30,9 +30,9 @@ DB_TIMEOUT=${DB_TIMEOUT:-60} SIDECAR_DISPATCHER=${SIDECAR_DISPATCHER:-0} SIDECAR_SYSLOGNG=${SIDECAR_SYSLOGNG:-0} -SIDECAR_SNNMPTRAPD=${SIDECAR_SNNMPTRAPD:-0} +SIDECAR_SNMPTRAPD=${SIDECAR_SNMPTRAPD:-0} -if [ "$SIDECAR_DISPATCHER" = "1" ] || [ "$SIDECAR_SYSLOGNG" = "1" ] || [ "$SIDECAR_SNNMPTRAPD" = "1" ]; then +if [ "$SIDECAR_DISPATCHER" = "1" ] || [ "$SIDECAR_SYSLOGNG" = "1" ] || [ "$SIDECAR_SNMPTRAPD" = "1" ]; then exit 0 fi diff --git a/rootfs/etc/cont-init.d/07-svc-cron.sh b/rootfs/etc/cont-init.d/07-svc-cron.sh index 508d80b..aa42af0 100644 --- a/rootfs/etc/cont-init.d/07-svc-cron.sh +++ b/rootfs/etc/cont-init.d/07-svc-cron.sh @@ -8,9 +8,9 @@ LIBRENMS_DAILY_SCHEDULE="15 0 * * *" SIDECAR_DISPATCHER=${SIDECAR_DISPATCHER:-0} SIDECAR_SYSLOGNG=${SIDECAR_SYSLOGNG:-0} -SIDECAR_SNNMPTRAPD=${SIDECAR_SNNMPTRAPD:-0} +SIDECAR_SNMPTRAPD=${SIDECAR_SNMPTRAPD:-0} -if [ "$SIDECAR_DISPATCHER" = "1" ] || [ "$SIDECAR_SYSLOGNG" = "1" ] || [ "$SIDECAR_SNNMPTRAPD" = "1" ]; then +if [ "$SIDECAR_DISPATCHER" = "1" ] || [ "$SIDECAR_SYSLOGNG" = "1" ] || [ "$SIDECAR_SNMPTRAPD" = "1" ]; then exit 0 fi diff --git a/rootfs/etc/cont-init.d/08-svc-snmptrapd.sh b/rootfs/etc/cont-init.d/08-svc-snmptrapd.sh index 6659203..5ea6fee 100644 --- a/rootfs/etc/cont-init.d/08-svc-snmptrapd.sh +++ b/rootfs/etc/cont-init.d/08-svc-snmptrapd.sh @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv sh -SIDECAR_SNNMPTRAPD=${SIDECAR_SNNMPTRAPD:-0} +SIDECAR_SNMPTRAPD=${SIDECAR_SNMPTRAPD:-0} LIBRENMS_SNMP_COMMUNITY=${LIBRENMS_SNMP_COMMUNITY:-librenmsdocker} SNMP_PROCESSING_TYPE=${SNMP_PROCESSING_TYPE:-log,execute,net} SNMP_USER=${SNMP_USER:-librenms_user} @@ -13,7 +13,7 @@ SNMP_ENGINEID=${SNMP_ENGINEID:-1234567890} SNMP_DISABLE_AUTHORIZATION=${SNMP_DISABLE_AUTHORIZATION:-yes} # Continue only if sidecar snmptrapd container -if [ "$SIDECAR_SNNMPTRAPD" != "1" ]; then +if [ "$SIDECAR_SNMPTRAPD" != "1" ]; then exit 0 fi