From 010011efe8e415486c2e54807168bc09c71dc2fd Mon Sep 17 00:00:00 2001 From: Stig Sandbeck Mathisen Date: Sat, 4 Oct 2014 22:03:52 +0200 Subject: [PATCH] Use "=" for comparison with /bin/sh --- plugins/cyrus/cyrus-imapd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/cyrus/cyrus-imapd b/plugins/cyrus/cyrus-imapd index d765af6e..faaba8cc 100755 --- a/plugins/cyrus/cyrus-imapd +++ b/plugins/cyrus/cyrus-imapd @@ -69,7 +69,7 @@ GPLv2 CONFIGDIR=$(awk -F : '/^configdirectory:/ { gsub(/ /, "", $2); print $2 }' /etc/imapd.conf 2> /dev/null) PROCDIR="${CONFIGDIR}/proc" -if [ "$1" == "autoconf" ]; then +if [ "$1" = "autoconf" ]; then if [ "x${CONFIGDIR}x" != "xx" ] && [ -d ${PROCDIR} ]; then echo yes else @@ -79,14 +79,14 @@ if [ "$1" == "autoconf" ]; then fi # Check if we actually got some sensible data -if [ "x${CONFIGDIR}x" == "xx" ]; then +if [ "x${CONFIGDIR}x" = "xx" ]; then exit 1 fi # If run with the "config"-parameter, give out information on how the # graphs should look. -if [ "$1" == "config" ]; then +if [ "$1" = "config" ]; then echo 'graph_title Cyrus IMAPd Load' echo 'graph_args --base 1000 -l 0' echo 'graph_vlabel connections'