Skip to content

Commit

Permalink
Merge pull request #16672 from lsm5/copr-podman-restart
Browse files Browse the repository at this point in the history
[CI:BUILD] copr: enable podman-restart.service on rpm installation
  • Loading branch information
openshift-merge-robot authored Nov 30, 2022
2 parents e15ffc1 + 0521748 commit b294b7c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions podman.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ BuildRequires: shadow-utils-subid-devel
BuildRequires: pkgconfig
BuildRequires: make
BuildRequires: ostree-devel
%{?systemd_requires}
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: conmon >= 2:2.0.30-2
Expand Down Expand Up @@ -221,6 +222,17 @@ for file in `find %{buildroot}%{_mandir}/man[15] -type f | sed "s,%{buildroot},,
echo "$file*" >> podman.file-list
done

%post
if [ $1 -eq 1 ]; then
%{_bindir}/systemctl enable --now %{name}-restart.service
fi

%preun
%systemd_preun %{name}-restart.service

%postun
%systemd_postun %{name}-restart.service

# This lists all the files that are included in the rpm package and that
# are going to be installed into target system where the rpm is installed.
%files -f %{name}.file-list
Expand Down

0 comments on commit b294b7c

Please sign in to comment.