Skip to content

Commit

Permalink
fix: do not stop service on upgrade (RHEL-based distros)
Browse files Browse the repository at this point in the history
  • Loading branch information
defanator committed Jun 20, 2023
1 parent 745eb99 commit e60ee60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/packages/postremove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ case "$ID" in
_cleanup
fi
;;
rhel|fedora|centos|amzn|almalinux|rocky)
if [ "$1" = "0" ]; then
_stop_agent_systemd
_disable_agent_systemd
_systemd_daemon_reload
_cleanup
fi
;;
*)
_stop_agent_systemd
_disable_agent_systemd
Expand Down

0 comments on commit e60ee60

Please sign in to comment.