diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-11-23 13:08:38 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-11-23 13:08:38 +0100 |
commit | 703551b3b7aca9bf0b29ef55fa7e2ded00eb4462 (patch) | |
tree | d9664790b208f2ed7bc8e2a1e2ec340dc22b56c6 /server/bin | |
parent | 12ad7b2a6fcb895985826696a403f302819ef071 (diff) |
#877: Copy hosts file on OGAgent activation, and some code cleanup.
Diffstat (limited to 'server/bin')
-rwxr-xr-x | server/bin/ogagentqueue.cron | 6 |
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 |