Skip to content

Commit

Permalink
Release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Oct 10, 2024
2 parents ac7712b + 41f273e commit 01faced
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-rb-monitor CHANGELOG
===============

## 0.1.1

- Miguel Negrón
- [65a6f7a] Add pre and postun to clean the cookbook

## 0.1.0

- Daniel Castro
Expand Down
23 changes: 19 additions & 4 deletions packaging/rpm/cookbook-rb-monitor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ chmod -R 0755 %{buildroot}/var/chef/cookbooks/rb-monitor
install -D -m 0644 README.md %{buildroot}/var/chef/cookbooks/rb-monitor/README.md

%pre
if [ -d /var/chef/cookbooks/rb-monitor ]; then
rm -rf /var/chef/cookbooks/rb-monitor
fi

%post
case "$1" in
Expand All @@ -36,6 +39,12 @@ case "$1" in
;;
esac

%postun
# Deletes directory when uninstall the package
if [ "$1" = 0 ] && [ -d /var/chef/cookbooks/rb-monitor ]; then
rm -rf /var/chef/cookbooks/rb-monitor
fi

%files
%defattr(0755,root,root)
/var/chef/cookbooks/rb-monitor
Expand All @@ -45,11 +54,17 @@ esac
%doc

%changelog
* Wed Jan 23 2024 David Vanhoucke <dvanhoucke@redborder.com> - 0.0.4-1
* Thu Oct 10 2024 Miguel Negrón <manegron@redborder.com>
- Add pre and postun

* Wed Jan 23 2024 David Vanhoucke <dvanhoucke@redborder.com>
- Fix redborder-monitor
* Mon Dec 18 2023 Miguel Álvarez <malvarez@redborder.com> - 0.0.3-1

* Mon Dec 18 2023 Miguel Álvarez <malvarez@redborder.com>
- Remove logstash from monitor stats
* Tue Apr 18 2023 Luis J. Blanco <ljblanco@redborder.com> - 0.0.2-1

* Tue Apr 18 2023 Luis J. Blanco <ljblanco@redborder.com>
- clean templates with helpers
* Tue Oct 18 2016 Alberto Rodríguez <arodriguez@redborder.com> - 0.0.1-1

* Tue Oct 18 2016 Alberto Rodríguez <arodriguez@redborder.com>
- first spec version
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
maintainer_email 'git@redborder.com'
license 'AGPL-3.0'
description 'Installs/Configures rb-monitor'
version '0.1.0'
version '0.1.1'

0 comments on commit 01faced

Please sign in to comment.