/[smecontribs]/rpms/smeserver-bugzilla/contribs10/smeserver-bugzilla-1.0-Switch-to-mariadb-105.patch
ViewVC logotype

Contents of /rpms/smeserver-bugzilla/contribs10/smeserver-bugzilla-1.0-Switch-to-mariadb-105.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon May 30 14:44:11 2022 UTC (2 years, 5 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-bugzilla-1_0-7_el7_sme, smeserver-bugzilla-1_0-5_el7_sme, smeserver-bugzilla-1_0-6_el7_sme, HEAD
* Mon May 30 2022 Brian Read <brianr@bjsystems.co.uk> 1.0-5.sme
- Switch-to-mariadb-105 for SME10 and add -update event [SME: 11977]

1 diff -urN smeserver-bugzilla-1.0.old/createlinks smeserver-bugzilla-1.0/createlinks
2 --- smeserver-bugzilla-1.0.old/createlinks 2013-10-13 00:48:34.000000000 +0100
3 +++ smeserver-bugzilla-1.0/createlinks 2022-05-30 14:50:44.920416830 +0100
4 @@ -5,19 +5,22 @@
5 for my $event (qw(
6 post-upgrade
7 bugzilla-update
8 + smeserver-bugzilla-update
9 ))
10 {
11 templates2events("/etc/bugzilla.conf", $event);
12 templates2events("/etc/bugzilla/localconfig", $event);
13 + templates2events("/etc/e-smith/sql/init105/91bugzilla", $event);
14 }
15
16 for my $event (qw(
17 bugzilla-update
18 + smeserver-bugzilla-update
19 ))
20 {
21 templates2events("/etc/httpd/conf/httpd.conf", $event);
22 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
23 - event_link("bugzilla", $event, "05");
24 + event_link("bugzilla", $event, "91");
25 + safe_symlink("restart","root/etc/e-smith/events/$event/services2adjust/mariadb105-mysql.init")
26 }
27
28 -templates2events("/etc/e-smith/sql/init/80bugzilla", "post-upgrade");
29 diff -urN smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/bugzilla/localconfig/30database smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/bugzilla/localconfig/30database
30 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/bugzilla/localconfig/30database 2013-10-13 00:00:12.000000000 +0100
31 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/bugzilla/localconfig/30database 2022-05-28 10:37:00.000000000 +0100
32 @@ -28,7 +28,7 @@
33 # MySQL Only: Enter a path to the unix socket for MySQL. If this is
34 # blank, then MySQL's compiled-in default will be used. You probably
35 # want that.
36 -$db_sock = '';
37 +$db_sock = '/var/lib/mysql/mariadb105.sock';
38
39 # Should checksetup.pl try to verify that your database setup is correct?
40 # (with some combinations of database servers/Perl modules/moonphase this
41 diff -urN smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla
42 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla 2013-10-13 00:00:12.000000000 +0100
43 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla 1970-01-01 01:00:00.000000000 +0100
44 @@ -1,10 +0,0 @@
45 -#!/bin/bash
46 -
47 -DATABASE=`/sbin/e-smith/db configuration getprop bugzilla DbDatabase`
48 -USERNAME=`/sbin/e-smith/db configuration getprop bugzilla DbUser`
49 -PASSWORD=`/sbin/e-smith/db configuration getprop bugzilla DbPassword`
50 -
51 -mysql -e "CREATE DATABASE IF NOT EXISTS $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
52 -mysql -e "USE mysql; GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES,LOCK TABLES,CREATE TEMPORARY TABLES ON $DATABASE.* TO $USERNAME@localhost IDENTIFIED BY '$PASSWORD'; FLUSH PRIVILEGES;"
53 -
54 -/etc/e-smith/events/actions/bugzilla
55 diff -urN smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init105/91bugzilla smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/e-smith/sql/init105/91bugzilla
56 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init105/91bugzilla 1970-01-01 01:00:00.000000000 +0100
57 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/e-smith/sql/init105/91bugzilla 2022-05-28 11:09:11.000000000 +0100
58 @@ -0,0 +1,10 @@
59 +#!/bin/bash
60 +
61 +DATABASE=`/sbin/e-smith/db configuration getprop bugzilla DbDatabase`
62 +USERNAME=`/sbin/e-smith/db configuration getprop bugzilla DbUser`
63 +PASSWORD=`/sbin/e-smith/db configuration getprop bugzilla DbPassword`
64 +
65 +mysql105 -e "CREATE DATABASE IF NOT EXISTS $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
66 +mysql105 -e "USE mysql; GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES,LOCK TABLES,CREATE TEMPORARY TABLES ON $DATABASE.* TO $USERNAME@localhost IDENTIFIED BY '$PASSWORD'; FLUSH PRIVILEGES;"
67 +
68 +/etc/e-smith/events/actions/bugzilla
69 diff -urN smeserver-bugzilla-1.0.old/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla smeserver-bugzilla-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla
70 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla 2013-10-13 00:00:12.000000000 +0100
71 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla 1970-01-01 01:00:00.000000000 +0100
72 @@ -1 +0,0 @@
73 -PERMS=0540
74 diff -urN smeserver-bugzilla-1.0.old/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init105/91bugzilla smeserver-bugzilla-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init105/91bugzilla
75 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init105/91bugzilla 1970-01-01 01:00:00.000000000 +0100
76 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init105/91bugzilla 2013-10-13 00:00:12.000000000 +0100
77 @@ -0,0 +1 @@
78 +PERMS=0540

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed