Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

Commit

Permalink
Add pulp-maintenance package
Browse files Browse the repository at this point in the history
closes #3908
  • Loading branch information
pcreech committed Aug 10, 2018
1 parent 3a8cd35 commit 37816d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/pulp/pulp-maintenance.cron
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
celery -A pulp.server.async.app call pulp.server.maintenance.monthly.queue_monthly_maintenance
15 changes: 15 additions & 0 deletions packages/pulp/pulp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Group: Development/Languages
License: GPLv2
URL: http://pulpproject.org/
Source0: https://github.com/%{name}/%{name}/archive/%{name}-%{version}.tar.gz
Source1: pulp-maintenance.cron
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if 0%{?suse_version}
Expand Down Expand Up @@ -289,6 +290,9 @@ ln -s %{_var}/lib/pulp/content %{buildroot}/%{_var}/www/pulp/nodes
# Tools
cp server/bin/* %{buildroot}/%{_bindir}

# pulp-maintenance
install -D -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/cron.weekly/pulp-maintenance

# Ghost
touch %{buildroot}/%{_sysconfdir}/pki/%{name}/ca.key
touch %{buildroot}/%{_sysconfdir}/pki/%{name}/ca.crt
Expand Down Expand Up @@ -635,6 +639,17 @@ Pulp nodes consumer client extensions.
%{python_sitelib}/pulp_node_consumer_extensions*.egg-info
%doc

%package maintenance
Summary: Pulp Maintenance
Requires: %{name}-server

%description maintenance
Pulp Monthly Maintenance Cron Job

%files maintenance
%defattr(755,root,root,-)
%{_sysconfdir}/cron.weekly/pulp-maintenance

%endif # End pulp_server if block


Expand Down

0 comments on commit 37816d6

Please sign in to comment.