diff --git a/Adapt-setup-appliance.sh-for-openeuler.patch b/Adapt-setup-appliance.sh-for-openeuler.patch new file mode 100644 index 0000000000000000000000000000000000000000..1de4dd3646b81baab1a7f46a3b29db8a975ffb97 --- /dev/null +++ b/Adapt-setup-appliance.sh-for-openeuler.patch @@ -0,0 +1,34 @@ +From 804c99034ac187f00875a5324ee2a13251d3fc98 Mon Sep 17 00:00:00 2001 +From: lingsheng +Date: Thu, 23 Sep 2021 09:53:06 +0800 +Subject: [PATCH] Adapt setup-appliance.sh for openeuler + +--- + dist/setup-appliance.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/dist/setup-appliance.sh b/dist/setup-appliance.sh +index 37b1cf3..51e4ef6 100755 +--- a/dist/setup-appliance.sh ++++ b/dist/setup-appliance.sh +@@ -247,7 +247,7 @@ function prepare_database_setup { + echo " - changing ownership for new datadir" + chown mysql:mysql -R /srv/obs/MySQL + echo " - restarting mysql" +- systemctl restart mysql ++ systemctl restart mariadb + echo " - setting new password for user root in mysql" + mysqladmin -u root password "opensuse" + if [[ $? > 0 ]];then +@@ -376,7 +376,7 @@ function relink_server_cert { + ############################################################################### + function fix_permissions { + cd $apidir +- chown -R wwwrun.www $apidir/log ++ chown -R apache.apache $apidir/log + } + + ############################################################################### +-- +2.23.0 + diff --git a/obs-server.spec b/obs-server.spec index d8a10ce10013bcd7959dcb7d5b12c84db1f496b0..10c05e081698c61da1912e7381909cb0b822267a 100644 --- a/obs-server.spec +++ b/obs-server.spec @@ -5,7 +5,7 @@ Name: obs-server Version: 2.10.1 -Release: lp151.23.12 +Release: lp151.23.13 Summary: The Open Build Service -- Server Component License: GPL-2.0-only or GPL-3.0-only URL: http://www.openbuildservice.org @@ -20,6 +20,7 @@ Patch5: 0005-obsscheduler-stop.patch Patch6: obs_project_update-should-tell-the-usage-but-not-hung-still.patch Patch7: fix-obs_productconvert-inputfile-path.patch Patch8: fix-obs-server-compilation-failed.patch +Patch9: Adapt-setup-appliance.sh-for-openeuler.patch BuildArch: noarch BuildRequires: python-devel, /usr/bin/xmllint, openssl, perl-BSSolv, perl-Compress-Zlib, xz @@ -291,6 +292,7 @@ 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 chown apache:apache /srv/www/obs/api/log/production.log +chown apache:apache /srv/www/obs/api/config/production.sphinx.conf %systemd_postun_with_restart memcached %systemd_post %{obs_api_support_scripts} @@ -489,6 +491,9 @@ usermod -a -G docker obsservicerun %{_sbindir}/rcobsstoragesetup %changelog +* Wed Dec 01 2021 lingsheng - 2.10.1-lp151.23.13 +- fix obsapisetup script problems, modify production.sphinx.conf owner + * Wed 27 Oct 2021 houyingchao - 2.10.1-lp151.23.12 - fix obs-server compilation failed