1
0
mirror of https://github.com/cmur2/munin-postfix.git synced 2024-11-18 12:56:17 +01:00

Fix syntax for sh

This commit is contained in:
cn 2013-09-10 21:28:40 +02:00
parent 2c2b774a3c
commit a68da5d4c1

View File

@ -93,8 +93,9 @@ SPOOLDIR=${spooldir:-$POSTCONFSPOOL}
. $MUNIN_LIBDIR/plugins/plugin.sh
syslogXmins() {
for (( i = $MINUTES; i > 0; i-- )) ; do
#for i in 4 3 2 1 0; do
MINUTES_MINUS_ONE=`expr $MINUTES - 1`
#for (( i = $MINUTES; i > 0; i-- )) ; do
for i in $(seq $MINUTES_MINUS_ONE 0) ; do
# In %_d the underscore is important since it demands `date`
# to pad with spaces (like syslog for e.g. "Jan 1" to "Jan 9")
# instead of zeros.