Skip to content

Commit

Permalink
Merge pull request #3 from PaesslerAG/fix/entrypoint_service_run_2
Browse files Browse the repository at this point in the history
fix: broken conditions in run script
  • Loading branch information
Flow86 authored Oct 10, 2024
2 parents 19ee055 + 8bb3d9b commit dfdc14a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-prtgmpprobe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
"$@"
Expand Down Expand Up @@ -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} || (
Expand Down

0 comments on commit dfdc14a

Please sign in to comment.