File tree Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
1
cookbook-rb-monitor CHANGELOG
2
2
===============
3
3
4
+ ## 0.1.1
5
+
6
+ - Miguel Negrón
7
+ - [ 65a6f7a] Add pre and postun to clean the cookbook
8
+
4
9
## 0.1.0
5
10
6
11
- Daniel Castro
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ chmod -R 0755 %{buildroot}/var/chef/cookbooks/rb-monitor
23
23
install -D -m 0644 README.md %{buildroot }/var/chef/cookbooks/rb-monitor/README.md
24
24
25
25
%pre
26
+ if [ -d /var/chef/cookbooks/rb-monitor ]; then
27
+ rm -rf /var/chef/cookbooks/rb-monitor
28
+ fi
26
29
27
30
%post
28
31
case " $1 " in
@@ -36,6 +39,12 @@ case "$1" in
36
39
;;
37
40
esac
38
41
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
+
39
48
%files
40
49
%defattr(0755,root,root)
41
50
/var/chef/cookbooks/rb-monitor
45
54
%doc
46
55
47
56
%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>
49
61
- 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>
51
64
- 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>
53
67
- 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>
55
70
- first spec version
Original file line number Diff line number Diff line change 3
3
maintainer_email 'git@redborder.com'
4
4
license 'AGPL-3.0'
5
5
description 'Installs/Configures rb-monitor'
6
- version '0.1.0 '
6
+ version '0.1.1 '
You can’t perform that action at this time.
0 commit comments