!4 [sync] PR-3: Fix systemd related scriptlet error

From: @openeuler-sync-bot 
Reviewed-by: @wu-leilei 
Signed-off-by: @wu-leilei
This commit is contained in:
openeuler-ci-bot 2023-02-28 01:04:11 +00:00 committed by Gitee
commit d5f2f68ce6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: custodia Name: custodia
Version: 0.6.0 Version: 0.6.0
Release: 6 Release: 7
Summary: A tool for managing secrets other processes Summary: A tool for managing secrets other processes
License: GPLv3+ License: GPLv3+
URL: https://github.com/latchset/%{name} URL: https://github.com/latchset/%{name}
@ -95,16 +95,22 @@ getent passwd custodia >/dev/null || \
exit 0 exit 0
%post %post
%systemd_post custodia@\*.socket for srv in `systemctl | awk '/custodia@.*\.service/{print $1} /custodia@.*\.socket/{print $1}'`;
%systemd_post custodia@\*.service do
%systemd_post $srv
done
%preun %preun
%systemd_preun custodia@\*.socket for srv in `systemctl | awk '/custodia@.*\.service/{print $1} /custodia@.*\.socket/{print $1}'`;
%systemd_preun custodia@\*.service do
%systemd_preun $srv
done
%postun %postun
%systemd_postun custodia@\*.socket for srv in `systemctl | awk '/custodia@.*\.service/{print $1} /custodia@.*\.socket/{print $1}'`;
%systemd_postun custodia@\*.service do
%systemd_postun_with_restart $srv
done
%files %files
%doc README API.md LICENSE %doc README API.md LICENSE
@ -130,6 +136,9 @@ exit 0
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}-nspkg.pth %{python3_sitelib}/%{name}-%{version}-py%{python3_version}-nspkg.pth
%changelog %changelog
* Tue Mar 01 2022 xuping <xuping33@huawei.com> 0.6.0-7
- Fix systemd related scriptlet error
* Fri Jan 8 2021 baizhonggui <baizhonggui> 0.6.0-6 * Fri Jan 8 2021 baizhonggui <baizhonggui> 0.6.0-6
- Fix building for pytest - Fix building for pytest