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 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/comment.reserveURL 2009-12-05 14:02:51.000000000 +0100 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/comment 2009-12-05 14:02:17.000000000 +0100 @@ -0,0 +1 @@ +Placeholder for bugzilla URL 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 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/type.reserveURL 2009-12-05 14:02:51.000000000 +0100 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/accounts/defaults/bugzilla/type 2009-12-05 14:01:52.000000000 +0100 @@ -0,0 +1 @@ +url 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 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbDatabase.database 2009-12-05 15:19:38.000000000 +0100 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbDatabase 2009-12-05 15:19:52.000000000 +0100 @@ -0,0 +1 @@ +bugzilla 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 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbUser.database 2009-12-05 15:19:31.000000000 +0100 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/defaults/bugzilla/DbUser 2009-12-05 15:19:44.000000000 +0100 @@ -0,0 +1 @@ +bugzilla 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 --- smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/migrate/80bugzilla.database 2009-12-05 15:13:01.000000000 +0100 +++ smeserver-bugzilla-0.1/root/etc/e-smith/db/configuration/migrate/80bugzilla 2009-12-05 15:27:04.000000000 +0100 @@ -0,0 +1,23 @@ +{ + use MIME::Base64 qw(encode_base64); + + my $service; + my $rec; + my $pw; + + # Enable InnoDB (needed for Bugzilla) + $service = 'mysqld'; + + $rec = $DB->get($service) || $DB->new_record($service, {type => 'service'}); + $rec->set_prop('InnoDB', 'enabled'); + + # Store the Bugzilla password in the configuration database (if not already there) + $service = 'bugzilla'; + + $rec = $DB->get($service) || $DB->new_record($service, {type => 'service'}); + + $pw = $rec->prop('DbPassword'); + return "" if $pw; + + $rec->set_prop('DbPassword', sprintf("%.15s", MIME::Base64::encode(int( (1000000000000000) * rand() )))); +}