fix obsapisetup script problems, modify production.sphinx.conf owner
(cherry picked from commit a571a2c040370c319fdb37aba987272be7663bb0)
This commit is contained in:
parent
71821e92ef
commit
0ce9cafdfd
34
Adapt-setup-appliance.sh-for-openeuler.patch
Normal file
34
Adapt-setup-appliance.sh-for-openeuler.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From 804c99034ac187f00875a5324ee2a13251d3fc98 Mon Sep 17 00:00:00 2001
|
||||||
|
From: lingsheng <lingsheng@huawei.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: obs-server
|
Name: obs-server
|
||||||
Version: 2.10.7
|
Version: 2.10.7
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: The Open Build Service -- Server Component
|
Summary: The Open Build Service -- Server Component
|
||||||
License: GPL-2.0-only OR GPL-3.0-only
|
License: GPL-2.0-only OR GPL-3.0-only
|
||||||
URL: http://www.openbuildservice.org
|
URL: http://www.openbuildservice.org
|
||||||
@ -19,6 +19,7 @@ Patch3: change-bundled-rubygem-bundler-version.patch
|
|||||||
Patch4: 0004-remove-systemV-method.patch
|
Patch4: 0004-remove-systemV-method.patch
|
||||||
Patch5: 0005-obsscheduler-stop.patch
|
Patch5: 0005-obsscheduler-stop.patch
|
||||||
Patch6: obs_project_update-should-tell-the-usage-but-not-hung-still.patch
|
Patch6: obs_project_update-should-tell-the-usage-but-not-hung-still.patch
|
||||||
|
Patch7: Adapt-setup-appliance.sh-for-openeuler.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -293,6 +294,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
|
sed -i -e 's,[ ]*adapter: mysql$, adapter: mysql2,' /srv/www/obs/api/config/database.yml
|
||||||
touch /srv/www/obs/api/log/production.log
|
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/log/production.log
|
||||||
|
chown apache:apache /srv/www/obs/api/config/production.sphinx.conf
|
||||||
|
|
||||||
%systemd_postun_with_restart memcached
|
%systemd_postun_with_restart memcached
|
||||||
%systemd_post %{obs_api_support_scripts}
|
%systemd_post %{obs_api_support_scripts}
|
||||||
@ -491,6 +493,9 @@ usermod -a -G docker obsservicerun
|
|||||||
%{_sbindir}/rcobsstoragesetup
|
%{_sbindir}/rcobsstoragesetup
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 23 2021 lingsheng <lingsheng@huawei.com> - 2.10.7-8
|
||||||
|
- fix obsapisetup script problems, modify production.sphinx.conf owner
|
||||||
|
|
||||||
* Sat Aug 21 2021 caodongxia <caodongxia@huawei.com> - 2.10.7-7
|
* Sat Aug 21 2021 caodongxia <caodongxia@huawei.com> - 2.10.7-7
|
||||||
- fix obsscheduler and obsworker
|
- fix obsscheduler and obsworker
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user