Skip to content

Commit

Permalink
Merge pull request #1473 from vpodzime/master-fix_chkconfig
Browse files Browse the repository at this point in the history
Only run 'chkconfig --del' on uninstall if we shipped /etc/init.d/cfe…
  • Loading branch information
nickanderson authored Jul 1, 2024
2 parents 2727177 + 58761bb commit 220a455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/common/cfengine-hub/preremove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

case "`os_type`" in
redhat)
test -x /sbin/chkconfig && chkconfig --del cfengine3
test -x /sbin/chkconfig && test -f /etc/init.d/cfengine3 && chkconfig --del cfengine3
;;
debian)
update-rc.d -f cfengine3 remove
Expand Down
2 changes: 1 addition & 1 deletion packaging/common/cfengine-non-hub/preremove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ case `os_type` in
#
# Unregister CFEngine initscript on uninstallation.
#
test -x /sbin/chkconfig && chkconfig --del cfengine3
test -x /sbin/chkconfig && test -f /etc/init.d/cfengine3 && chkconfig --del cfengine3

#
# systemd support
Expand Down

0 comments on commit 220a455

Please sign in to comment.