!97 [sync] PR-95: 修复obs-api安装是多余提示信息

From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-06-16 12:05:58 +00:00 committed by Gitee
commit 2c8f2aa752
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: 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 <caodongxia@h-partners.com> - 2.10.11-4
- Fix obs-api install warning
* Mon May 16 2022 wangkai <wangkai385@h-partners.com> - 2.10.11-3
- Update xmlhash to 1.3.8 for fix CVE-2022-21949