Fix obs-api installwarning

(cherry picked from commit d84803e10c31b6937f3ac89f627c7a71440054ad)
This commit is contained in:
caodongxia 2022-05-26 16:58:23 +08:00 committed by openeuler-sync-bot
parent d7dc2010c6
commit e079b882b4

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