/[smecontribs]/rpms/smeserver-bugzilla/contribs10/smeserver-bugzilla-0.1-database.patch
ViewVC logotype

Contents of /rpms/smeserver-bugzilla/contribs10/smeserver-bugzilla-0.1-database.patch

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


Revision 1.1 - (show annotations) (download)
Mon May 23 19:06:44 2022 UTC (2 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-bugzilla-1_0-4_el7_sme, smeserver-bugzilla-1_0-7_el7_sme, smeserver-bugzilla-1_0-5_el7_sme, smeserver-bugzilla-1_0-6_el7_sme, HEAD
Error occurred while calculating annotation data.
Initial import

1 diff -up smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/comment.reserveURL smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/comment
2 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/comment.reserveURL 2009-12-05 14:02:51.000000000 +0100
3 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/comment 2009-12-05 14:02:17.000000000 +0100
4 @@ -0,0 +1 @@
5 +Placeholder for bugzilla URL
6 diff -up smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/type.reserveURL smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/type
7 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/type.reserveURL 2009-12-05 14:02:51.000000000 +0100
8 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/type 2009-12-05 14:01:52.000000000 +0100
9 @@ -0,0 +1 @@
10 +url
11 diff -up smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbDatabase.database smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbDatabase
12 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbDatabase.database 2009-12-05 15:19:38.000000000 +0100
13 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbDatabase 2009-12-05 15:19:52.000000000 +0100
14 @@ -0,0 +1 @@
15 +bugzilla
16 diff -up smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbUser.database smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbUser
17 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbUser.database 2009-12-05 15:19:31.000000000 +0100
18 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbUser 2009-12-05 15:19:44.000000000 +0100
19 @@ -0,0 +1 @@
20 +bugzilla
21 diff -up smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/migrate/80bugzilla.database smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/migrate/80bugzilla
22 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/migrate/80bugzilla.database 2009-12-05 15:13:01.000000000 +0100
23 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/migrate/80bugzilla 2009-12-05 15:27:04.000000000 +0100
24 @@ -0,0 +1,23 @@
25 +{
26 + use MIME::Base64 qw(encode_base64);
27 +
28 + my $service;
29 + my $rec;
30 + my $pw;
31 +
32 + # Enable InnoDB (needed for Bugzilla)
33 + $service = 'mysqld';
34 +
35 + $rec = $DB->get($service) || $DB->new_record($service, {type => 'service'});
36 + $rec->set_prop('InnoDB', 'enabled');
37 +
38 + # Store the Bugzilla password in the configuration database (if not already there)
39 + $service = 'bugzilla';
40 +
41 + $rec = $DB->get($service) || $DB->new_record($service, {type => 'service'});
42 +
43 + $pw = $rec->prop('DbPassword');
44 + return "" if $pw;
45 +
46 + $rec->set_prop('DbPassword', sprintf("%.15s", MIME::Base64::encode(int( (1000000000000000) * rand() ))));
47 +}

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