mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Use "=" for comparison with /bin/sh
This commit is contained in:
parent
da59e03cf2
commit
010011efe8
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ GPLv2
|
||||||
CONFIGDIR=$(awk -F : '/^configdirectory:/ { gsub(/ /, "", $2); print $2 }' /etc/imapd.conf 2> /dev/null)
|
CONFIGDIR=$(awk -F : '/^configdirectory:/ { gsub(/ /, "", $2); print $2 }' /etc/imapd.conf 2> /dev/null)
|
||||||
PROCDIR="${CONFIGDIR}/proc"
|
PROCDIR="${CONFIGDIR}/proc"
|
||||||
|
|
||||||
if [ "$1" == "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
if [ "x${CONFIGDIR}x" != "xx" ] && [ -d ${PROCDIR} ]; then
|
if [ "x${CONFIGDIR}x" != "xx" ] && [ -d ${PROCDIR} ]; then
|
||||||
echo yes
|
echo yes
|
||||||
else
|
else
|
||||||
|
@ -79,14 +79,14 @@ if [ "$1" == "autoconf" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we actually got some sensible data
|
# Check if we actually got some sensible data
|
||||||
if [ "x${CONFIGDIR}x" == "xx" ]; then
|
if [ "x${CONFIGDIR}x" = "xx" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If run with the "config"-parameter, give out information on how the
|
# If run with the "config"-parameter, give out information on how the
|
||||||
# graphs should look.
|
# graphs should look.
|
||||||
|
|
||||||
if [ "$1" == "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title Cyrus IMAPd Load'
|
echo 'graph_title Cyrus IMAPd Load'
|
||||||
echo 'graph_args --base 1000 -l 0'
|
echo 'graph_args --base 1000 -l 0'
|
||||||
echo 'graph_vlabel connections'
|
echo 'graph_vlabel connections'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue