splay is not numeric any more
This commit is contained in:
@@ -53,7 +53,7 @@ if [ ${ISUNIIP} -gt 0 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
MAXSLEEP=<%= @maxsleep %> #How many seconds to wait maximally
|
||||
#MAXSLEEP=<%= @maxsleep %> #How many seconds to wait maximally
|
||||
SLEEP=${RANDOM}
|
||||
I=${RANDOM}
|
||||
|
||||
@@ -63,7 +63,7 @@ if [ ${ISUNIIP} -gt 0 ]; then
|
||||
SLEEP=${RANDOM}
|
||||
done
|
||||
# wait maximally $MAXSLEEP seconds
|
||||
sleep $(expr ${SLEEP} % ${MAXSLEEP})
|
||||
#sleep $(expr ${SLEEP} % ${MAXSLEEP})
|
||||
# run puppetd
|
||||
nice -n 12 $PUPPET agent -t 2&>>/var/log/puppet/puppetd_run.log
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user