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 1114911 + 335b23b commit b2f7969
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-nginx CHANGELOG
===============

## 1.0.2

- Miguel Negrón
- [76275bf] Add pre and postun to clean the cookbook

## 1.0.1

- Miguel Alvarez
Expand All @@ -19,7 +24,7 @@ cookbook-nginx CHANGELOG
- [ded1a47] Update s3.conf.erb

## 0.0.8
- Miguel Negron
- Miguel Negrón
- [717936a] lint avoid use constants for OpenSSL
- [7d575d6] lint file.write instead of file.open
- [fc2b48b] lint resources 2
Expand Down
17 changes: 15 additions & 2 deletions packaging/rpm/cookbook-nginx.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ chmod -R 0755 %{buildroot}%{cookbook_path}
install -D -m 0644 README.md %{buildroot}%{cookbook_path}/README.md

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

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

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

%files
%defattr(0755,root,root)
%{cookbook_path}
Expand All @@ -47,7 +56,11 @@ esac
%doc

%changelog
* Fri Jan 07 2022 David Vanhoucke <[email protected]> - 0.0.3-1
* Thu Oct 10 2024 Miguel Negrón <[email protected]>
- Add pre and postun

* Fri Jan 07 2022 David Vanhoucke <[email protected]>
- change register to consul
* Tue Nov 14 2016 Juan J. Prieto <[email protected]> - 1.0.0-1

* Tue Nov 14 2016 Juan J. Prieto <[email protected]>
- 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 '[email protected]'
license 'AGPL-3.0'
description 'Installs/Configures cookbook-nginx'
version '1.0.1'
version '1.0.2'

0 comments on commit b2f7969

Please sign in to comment.