Skip to content

Commit 01faced

Browse files
committed
Release new version
2 parents ac7712b + 41f273e commit 01faced

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
cookbook-rb-monitor CHANGELOG
22
===============
33

4+
## 0.1.1
5+
6+
- Miguel Negrón
7+
- [65a6f7a] Add pre and postun to clean the cookbook
8+
49
## 0.1.0
510

611
- Daniel Castro

packaging/rpm/cookbook-rb-monitor.spec

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ chmod -R 0755 %{buildroot}/var/chef/cookbooks/rb-monitor
2323
install -D -m 0644 README.md %{buildroot}/var/chef/cookbooks/rb-monitor/README.md
2424

2525
%pre
26+
if [ -d /var/chef/cookbooks/rb-monitor ]; then
27+
rm -rf /var/chef/cookbooks/rb-monitor
28+
fi
2629

2730
%post
2831
case "$1" in
@@ -36,6 +39,12 @@ case "$1" in
3639
;;
3740
esac
3841

42+
%postun
43+
# Deletes directory when uninstall the package
44+
if [ "$1" = 0 ] && [ -d /var/chef/cookbooks/rb-monitor ]; then
45+
rm -rf /var/chef/cookbooks/rb-monitor
46+
fi
47+
3948
%files
4049
%defattr(0755,root,root)
4150
/var/chef/cookbooks/rb-monitor
@@ -45,11 +54,17 @@ esac
4554
%doc
4655

4756
%changelog
48-
* Wed Jan 23 2024 David Vanhoucke <dvanhoucke@redborder.com> - 0.0.4-1
57+
* Thu Oct 10 2024 Miguel Negrón <manegron@redborder.com>
58+
- Add pre and postun
59+
60+
* Wed Jan 23 2024 David Vanhoucke <dvanhoucke@redborder.com>
4961
- Fix redborder-monitor
50-
* Mon Dec 18 2023 Miguel Álvarez <malvarez@redborder.com> - 0.0.3-1
62+
63+
* Mon Dec 18 2023 Miguel Álvarez <malvarez@redborder.com>
5164
- Remove logstash from monitor stats
52-
* Tue Apr 18 2023 Luis J. Blanco <ljblanco@redborder.com> - 0.0.2-1
65+
66+
* Tue Apr 18 2023 Luis J. Blanco <ljblanco@redborder.com>
5367
- clean templates with helpers
54-
* Tue Oct 18 2016 Alberto Rodríguez <arodriguez@redborder.com> - 0.0.1-1
68+
69+
* Tue Oct 18 2016 Alberto Rodríguez <arodriguez@redborder.com>
5570
- first spec version

resources/metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
maintainer_email 'git@redborder.com'
44
license 'AGPL-3.0'
55
description 'Installs/Configures rb-monitor'
6-
version '0.1.0'
6+
version '0.1.1'

0 commit comments

Comments
 (0)