fix install errror
This commit is contained in:
parent
8110056246
commit
3667823360
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user