Skip to content

Commit

Permalink
Merge pull request #43 from mergermarket/fix-update-notifications
Browse files Browse the repository at this point in the history
fix dnf update notifications
  • Loading branch information
marciogoda authored Feb 8, 2024
2 parents b433ec9 + 86519f3 commit ec8484d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 54 deletions.
47 changes: 0 additions & 47 deletions files/dnf-automatic.conf

This file was deleted.

2 changes: 1 addition & 1 deletion files/notify_updates
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [ -z "${STATELESS_INSTANCE}" ]; then
echo 'STATELESS_INSTANCE should be set to 0 or 1' >&1
fi

updates="$(/usr/sbin/dnf-automatic /etc/dnf/automatic.conf)"
updates="$(/usr/bin/dnf check-update | tail -n +2 )"
if [[ -n "${updates}" ]]; then
/usr/local/bin/send_datadog_event.py "${updates}"
fi
6 changes: 0 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
dest: /usr/local/bin/
mode: "0755"

- name: Config file
ansible.builtin.copy:
src: dnf-automatic.conf
dest: /etc/dnf/automatic.conf
mode: "0644"

- name: Send datadog event
ansible.builtin.copy:
src: send_datadog_event.py
Expand Down

0 comments on commit ec8484d

Please sign in to comment.