-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ chmod -R 0755 %{buildroot}/var/chef/cookbooks/rb-ips | |
install -D -m 0644 README.md %{buildroot}/var/chef/cookbooks/rb-ips/README.md | ||
|
||
%pre | ||
if [ -d /var/chef/cookbooks/rb-ips ]; then | ||
rm -rf /var/chef/cookbooks/rb-ips | ||
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/rb-ips ]; then | ||
rm -rf /var/chef/cookbooks/rb-ips | ||
fi | ||
|
||
%files | ||
%defattr(0755,root,root) | ||
/var/chef/cookbooks/rb-ips | ||
|
@@ -45,13 +54,20 @@ esac | |
%doc | ||
|
||
%changelog | ||
* Wed Jan 23 2024 David Vanhoucke <[email protected]> - 0.1.6 | ||
* Thu Oct 10 2024 Miguel Negrón <[email protected]> | ||
- Add pre and postun | ||
|
||
* Wed Jan 23 2024 David Vanhoucke <[email protected]> | ||
- Fix redborder-monitor | ||
* Thu Jan 18 2024 Miguel Negrón <[email protected]> - 0.1.5 | ||
|
||
* Thu Jan 18 2024 Miguel Negrón <[email protected]> | ||
- Add journalctld configuration | ||
* Thu Dec 14 2023 Miguel Álvarez <[email protected]> - 0.1.4 | ||
|
||
* Thu Dec 14 2023 Miguel Álvarez <[email protected]> | ||
- Add cgroups | ||
* Fri Dec 01 2023 David Vanhoucke <[email protected]> - 0.1.3 | ||
|
||
* Fri Dec 01 2023 David Vanhoucke <[email protected]> | ||
- Add selinux | ||
* Tue Mar 22 2022 Miguel Negron <[email protected]> - 0.0.1 | ||
|
||
* Tue Mar 22 2022 Miguel Negron <[email protected]> | ||
- Initial release of ips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
maintainer_email '[email protected]' | ||
license 'AGPL-3.0' | ||
description 'Installs/Configures redborder ips' | ||
version '1.0.0' | ||
version '1.0.1' | ||
|
||
depends 'rb-common' | ||
depends 'geoip' | ||
|