The crontab command only implements the `-T` option from version 1.5.6
of cronie but log01 has 1.5.2 (current release in RHEL 8.4).
Signed-off-by: Nils Philippsen <nils@redhat.com>
This lets users of simple_message_to_bus predefine items which should be
present in all message bodies this way:
export MSGBODY_PRESET="key1=value1 key2=value2"
This doesn't work with spaces in either keys or values, any quotation
will be used verbatim.
Signed-off-by: Nils Philippsen <nils@redhat.com>
Callers of simple_message_to_bus need to set and export MSGTOPIC_PREFIX
explicitly.
This decouples the fedora-messaging-utils and web-data-analysis roles.
Additionally, don't assume /bin/sh is /bin/bash.
Signed-off-by: Nils Philippsen <nils@redhat.com>
This lets scripts in cron jobs find /usr/local/bin/simple_message_to_bus
without hard-coding the whole path.
Signed-off-by: Nils Philippsen <nils@redhat.com>