summaryrefslogtreecommitdiffstats
path: root/server/bin/ogagentqueue.cron
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-11-23 13:08:38 +0100
committerRamón M. Gómez <ramongomez@us.es>2018-11-23 13:08:38 +0100
commit703551b3b7aca9bf0b29ef55fa7e2ded00eb4462 (patch)
treed9664790b208f2ed7bc8e2a1e2ec340dc22b56c6 /server/bin/ogagentqueue.cron
parent12ad7b2a6fcb895985826696a403f302819ef071 (diff)
#877: Copy hosts file on OGAgent activation, and some code cleanup.
Diffstat (limited to 'server/bin/ogagentqueue.cron')
-rwxr-xr-xserver/bin/ogagentqueue.cron6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/bin/ogagentqueue.cron b/server/bin/ogagentqueue.cron
index 0cf0dd5d..d44efdff 100755
--- a/server/bin/ogagentqueue.cron
+++ b/server/bin/ogagentqueue.cron
@@ -77,10 +77,10 @@ SELECT ogagent_queue.id, ogagent_queue.exectime, ogagent_queue.operation,
if [ -n "$AGNTURL" ]; then
CODE=$(curl -ksm 1 -w "%{http_code}" -o /dev/null -H "Authorization: $AGNTKEY" ${DATA:+"-d $DATA"} "$AGNTURL")
case "$CODE" in
- 000) # Client does not respond may be halted).
+ 000) # Client does not respond (may be halted).
;;
- 200) # Operation sended.
- echo "$(date +"%FT%T%z"): $PROG: Operation sended to OGAgent: client=$AGNTIP, oper=$OPER, exectime=\"$DATE $TIME\"" >> $LOGFILE ;;
+ 200) # Operation sent.
+ echo "$(date +"%FT%T%z"): $PROG: Operation sent to OGAgent: client=$AGNTIP, oper=$OPER, exectime=\"$DATE $TIME\"" >> $LOGFILE ;;
*) # Operation error.
echo "$(date +"%FT%T%z"): $PROG: Operation error: client=$AGNTIP, oper=$OPER, code=$CODE" >> $LOGFILE ;;
esac