Debianization and various other fixes.
[ezmlm] / ezmlm-test.sh
index a1d03b8..0653795 100644 (file)
@@ -218,11 +218,11 @@ if [ ! -x "${EZBIN}/ezmlm-make" ]; then
        exit 99
 fi
 
-if [ ! -x "${QMPATH}/bin/qmail-local" ]; then
+if [ ! -x "/usr/sbin/qmail-local" ]; then
        ${ECHO} "can't find qmail-local. Please correct the path in the script"
        exit 99
 fi
-if [ ! -x "${QMPATH}/bin/qmail-inject" ]; then
+if [ ! -x "/usr/sbin/qmail-inject" ]; then
        ${ECHO} "can't find qmail-inject. Please correct the path in the script"
        exit 99
 fi
@@ -284,7 +284,7 @@ send_test()
   {
        ${ECHO} "X-num: #TSTMSG$1#"
        ${ECHO} "To: ${SND}@$HOST"
-  } | ${QMPATH}/bin/qmail-inject
+  } | /usr/sbin/qmail-inject
   return 0
 }
 
@@ -517,7 +517,7 @@ fi
 if [ "$SECT" != "9" ]; then
 
 ${ECHO} "Subject: zzz-test" > "${DIR}/__tmp"
-${QMPATH}/bin/qmail-local "$EZTEST" "$HOME" "$SND-zzz" "$DASH" \
+/usr/sbin/qmail-local "$EZTEST" "$HOME" "$SND-zzz" "$DASH" \
                "$LIST-$SINK-zzz" "$HOST" \
                "<>" '' < "${DIR}/__tmp" >"${ERR}" 2>&1 || \
        { ${ECHO} "-failed to deliver message with qmail-local"; exit 100; }