fix obs-server install error

(cherry picked from commit 6332c0ed0c137bc6f7344e489faf075e148bab35)
This commit is contained in:
lyn1001 2023-12-04 10:19:51 +08:00 committed by openeuler-sync-bot
parent 83a420f8b2
commit e31649d632

View File

@ -6,7 +6,7 @@
Name: obs-server
Version: 2.10.15
Release: 7
Release: 8
Summary: The Open Build Service -- Server Component
License: GPL-2.0-only OR GPL-3.0-only
URL: http://www.openbuildservice.org
@ -33,7 +33,7 @@ Requires: build >= 20191114, perl-BSSolv, perl(Date::Parse), diffutils, gi
Requires: createrepo_c, dpkg, yum, perl-Compress-Zlib, perl-File-Sync >= 0.10, perl-JSON-XS
Requires: perl-Net-SSLeay, perl-Socket-MsgHdr, perl-XML-Parser, perl-XML-Simple, perl-YAML-LibYAML
Requires: cpio, curl, perl-Compress-Zlib, perl-TimeDate, screen, psmisc, bash, binutils, bsdtar
Requires: util-linux >= 2.16, osc
Requires: util-linux >= 2.16, osc obs-bundled-gems = %{version}
Requires: perl-XML-Structured perl-DBD-SQLite policycoreutils-python-utils
Requires(post): systemd
Requires(preun): systemd
@ -316,7 +316,7 @@ if [ ! -s /srv/www/obs/api/config/secret.key ]; then
popd >& /dev/null
fi
chmod 0640 /srv/www/obs/api/config/secret.key
chown root.apache /srv/www/obs/api/config/secret.key
chown root:apache /srv/www/obs/api/config/secret.key
sed -i -e 's,[ ]*adapter: mysql$, adapter: mysql2,' /srv/www/obs/api/config/database.yml
touch /srv/www/obs/api/log/production.log
@ -496,6 +496,9 @@ usermod -a -G docker obsservicerun
%{_sbindir}/obsstoragesetup
%changelog
* Mon Dec 4 2023 liyanan <liyanan61@h-partners.com> - 2.10.15-8
- Fix obs-server install error
* Wed Jun 28 2023 Ge Wang <wang__ge@126.com> - 2.10.15-7
- fix obs-clockwork service start failure