diff --git a/CHANGELOG.md b/CHANGELOG.md index aa74fe2..8598604 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ cookbook-minio CHANGELOG =============== +## 1.0.1 + + - Miguel Negrón + - [f8212c7] Add pre and postun to clean the cookbook + ## 1.0.0 - malvads diff --git a/packaging/rpm/cookbook-minio.spec b/packaging/rpm/cookbook-minio.spec index 45f2f75..471da3c 100644 --- a/packaging/rpm/cookbook-minio.spec +++ b/packaging/rpm/cookbook-minio.spec @@ -23,6 +23,9 @@ chmod -R 0755 %{buildroot}/var/chef/cookbooks/minio install -D -m 0644 README.md %{buildroot}/var/chef/cookbooks/minio/README.md %pre +if [ -d /var/chef/cookbooks/minio ]; then + rm -rf /var/chef/cookbooks/minio +fi %post case "$1" in @@ -36,6 +39,12 @@ case "$1" in ;; esac +%postun +# Deletes directory when uninstall the package +if [ "$1" = 0 ] && [ -d /var/chef/cookbooks/minio ]; then + rm -rf /var/chef/cookbooks/minio +fi + %files %defattr(0755,root,root) /var/chef/cookbooks/minio @@ -46,9 +55,14 @@ esac %doc %changelog -* Fri Jan 28 2022 David Vanhoucke - 0.0.3-1 +* Thu Oct 10 2024 Miguel Negrón +- Add pre and postun + +* Fri Jan 28 2022 David Vanhoucke - define attributes and update register to consul -* Fri Jan 07 2022 David Vanhoucke - 0.0.2-1 + +* Fri Jan 07 2022 David Vanhoucke - change register to consul -* Wed Jan 24 2018 Alberto Rodriguez - 0.1.0-1 + +* Wed Jan 24 2018 Alberto Rodriguez - first spec version diff --git a/resources/metadata.rb b/resources/metadata.rb index c1df86a..c2738aa 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -3,4 +3,4 @@ maintainer_email 'git@redborder.com' license 'AGPL-3.0' description 'Installs/Configures Minio' -version '1.0.0' +version '1.0.1'