From e079b882b4fe38b30504cc2c68dc81259414e2d0 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 26 May 2022 16:58:23 +0800 Subject: [PATCH] Fix obs-api installwarning (cherry picked from commit d84803e10c31b6937f3ac89f627c7a71440054ad) --- obs-server.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/obs-server.spec b/obs-server.spec index 6302c8e..183c1c0 100644 --- a/obs-server.spec +++ b/obs-server.spec @@ -5,7 +5,7 @@ Name: obs-server Version: 2.10.11 -Release: 3 +Release: 4 Summary: The Open Build Service -- Server Component License: GPL-2.0-only or GPL-3.0-only URL: http://www.openbuildservice.org @@ -285,9 +285,9 @@ for i in production.rb ; do done if [ ! -s /srv/www/obs/api/config/secret.key ]; then - pushd /srv/www/obs/api + pushd /srv/www/obs/api >& /dev/null RAILS_ENV=production bin/rails secret > /srv/www/obs/api/config/secret.key - popd + popd >& /dev/null fi chmod 0640 /srv/www/obs/api/config/secret.key chown root.apache /srv/www/obs/api/config/secret.key @@ -494,6 +494,9 @@ usermod -a -G docker obsservicerun %{_sbindir}/rcobsstoragesetup %changelog +* Thu May 26 2022 caodongxia - 2.10.11-4 +- Fix obs-api install warning + * Mon May 16 2022 wangkai - 2.10.11-3 - Update xmlhash to 1.3.8 for fix CVE-2022-21949 -- Gitee