diff -urN smeserver-bugzilla-1.0.old/createlinks smeserver-bugzilla-1.0/createlinks --- smeserver-bugzilla-1.0.old/createlinks 2013-10-13 00:48:34.000000000 +0100 +++ smeserver-bugzilla-1.0/createlinks 2022-05-30 14:50:44.920416830 +0100 @@ -5,19 +5,22 @@ for my $event (qw( post-upgrade bugzilla-update + smeserver-bugzilla-update )) { templates2events("/etc/bugzilla.conf", $event); templates2events("/etc/bugzilla/localconfig", $event); + templates2events("/etc/e-smith/sql/init105/91bugzilla", $event); } for my $event (qw( bugzilla-update + smeserver-bugzilla-update )) { templates2events("/etc/httpd/conf/httpd.conf", $event); safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); - event_link("bugzilla", $event, "05"); + event_link("bugzilla", $event, "91"); + safe_symlink("restart","root/etc/e-smith/events/$event/services2adjust/mariadb105-mysql.init") } -templates2events("/etc/e-smith/sql/init/80bugzilla", "post-upgrade"); 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 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/bugzilla/localconfig/30database 2013-10-13 00:00:12.000000000 +0100 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/bugzilla/localconfig/30database 2022-05-28 10:37:00.000000000 +0100 @@ -28,7 +28,7 @@ # MySQL Only: Enter a path to the unix socket for MySQL. If this is # blank, then MySQL's compiled-in default will be used. You probably # want that. -$db_sock = ''; +$db_sock = '/var/lib/mysql/mariadb105.sock'; # Should checksetup.pl try to verify that your database setup is correct? # (with some combinations of database servers/Perl modules/moonphase this 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 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla 2013-10-13 00:00:12.000000000 +0100 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla 1970-01-01 01:00:00.000000000 +0100 @@ -1,10 +0,0 @@ -#!/bin/bash - -DATABASE=`/sbin/e-smith/db configuration getprop bugzilla DbDatabase` -USERNAME=`/sbin/e-smith/db configuration getprop bugzilla DbUser` -PASSWORD=`/sbin/e-smith/db configuration getprop bugzilla DbPassword` - -mysql -e "CREATE DATABASE IF NOT EXISTS $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" -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;" - -/etc/e-smith/events/actions/bugzilla 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 --- smeserver-bugzilla-1.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init105/91bugzilla 1970-01-01 01:00:00.000000000 +0100 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates/etc/e-smith/sql/init105/91bugzilla 2022-05-28 11:09:11.000000000 +0100 @@ -0,0 +1,10 @@ +#!/bin/bash + +DATABASE=`/sbin/e-smith/db configuration getprop bugzilla DbDatabase` +USERNAME=`/sbin/e-smith/db configuration getprop bugzilla DbUser` +PASSWORD=`/sbin/e-smith/db configuration getprop bugzilla DbPassword` + +mysql105 -e "CREATE DATABASE IF NOT EXISTS $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" +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;" + +/etc/e-smith/events/actions/bugzilla 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 --- 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 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -PERMS=0540 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 --- 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 +++ smeserver-bugzilla-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init105/91bugzilla 2013-10-13 00:00:12.000000000 +0100 @@ -0,0 +1 @@ +PERMS=0540