!134 Fix obs-api install warning

From: @lyn1001 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-11-20 06:28:31 +00:00 committed by Gitee
commit cab96007b0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -5,7 +5,7 @@
Name: obs-server
Version: 2.10.11
Release: 5
Release: 6
Summary: The Open Build Service -- Server Component
License: GPL-2.0-only or GPL-3.0-only
URL: http://www.openbuildservice.org
@ -263,6 +263,10 @@ rmdir /srv/obs 2> /dev/null || :
%systemd_postun_with_restart obsstoragesetup.service
%pre -n obs-api
getent group www >/dev/null || /usr/sbin/groupadd -r www
getent passwd wwwrun >/dev/null || /usr/sbin/useradd -d / -g www -s /sbin/nologin -r wwwrun
getent passwd obsapidelayed >/dev/null || \
/usr/sbin/useradd -r -s /bin/bash -c "User for build service api delayed jobs" -d /srv/www/obs/api -g apache obsapidelayed
@ -500,6 +504,9 @@ usermod -a -G docker obsservicerun
%{_sbindir}/rcobsstoragesetup
%changelog
* Mon Nov 20 2023 liyanan <liyanan61@h-partners.com> - 2.10.11-6
- Fix obs-api install warning
* Wed Nov 08 2023 Ge Wang <wang__ge@126.com> - 2.10.11-5
- Add post script to adatp selinux policy