From 8bb3d9b08b93dccacf8ec174ef3f74c09c6215bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20D=C3=B6rsch?= <656249+Flow86@users.noreply.github.com> Date: Wed, 9 Oct 2024 08:32:18 +0200 Subject: [PATCH] fix: broken conditions in run script --- run-prtgmpprobe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-prtgmpprobe.sh b/run-prtgmpprobe.sh index 68b32a3..e480b18 100644 --- a/run-prtgmpprobe.sh +++ b/run-prtgmpprobe.sh @@ -18,7 +18,7 @@ do ;; esac done -if [ $_passthrough -neq 0 ] ; then +if [ $_passthrough -ne 0 ] ; then exec gosu paessler_mpprobe:paessler_mpprobe \ ${PRTGMPPROBE__BINARY} \ "$@" @@ -51,7 +51,7 @@ if [ ! -f "${PRTGMPPROBE__CONFIG_FILE}" ] ; then fi # Get/Generate a probe id from PRTGMPPROBE__ID_FILE or from PRTGMPPROBE__ID if not set in PRTGMPPROBE__CONFIG_FILE -if [ ! grep -q "^id:" "${PRTGMPPROBE__CONFIG_FILE}" ] ; then +if ! grep -q "^id:" "${PRTGMPPROBE__CONFIG_FILE}" ; then if [ -z "${PRTGMPPROBE__ID-}" ] ; then if [ ! -f "${PRTGMPPROBE__ID_FILE}" ] ; then cat /proc/sys/kernel/random/uuid > ${PRTGMPPROBE__ID_FILE} || (