1 |
diff -up smeserver-bugzilla-0.1/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla.bugzilla-setup smeserver-bugzilla-0.1/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla |
2 |
--- smeserver-bugzilla-0.1/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla.bugzilla-setup 2009-12-05 14:33:28.000000000 +0100 |
3 |
+++ smeserver-bugzilla-0.1/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80bugzilla 2009-12-05 14:34:58.000000000 +0100 |
4 |
@@ -0,0 +1,1 @@ |
5 |
+PERMS=0540 |
6 |
diff -up smeserver-bugzilla-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla.bugzilla-setup smeserver-bugzilla-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla |
7 |
--- smeserver-bugzilla-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla.bugzilla-setup 2009-12-05 23:53:14.000000000 +0100 |
8 |
+++ smeserver-bugzilla-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80bugzilla 2009-12-05 23:53:05.000000000 +0100 |
9 |
@@ -0,0 +1,10 @@ |
10 |
+#!/bin/bash |
11 |
+ |
12 |
+DATABASE=`/sbin/e-smith/db configuration getprop bugzilla DbDatabase` |
13 |
+USERNAME=`/sbin/e-smith/db configuration getprop bugzilla DbUser` |
14 |
+PASSWORD=`/sbin/e-smith/db configuration getprop bugzilla DbPassword` |
15 |
+ |
16 |
+mysql -e "CREATE DATABASE IF NOT EXISTS $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" |
17 |
+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;" |
18 |
+ |
19 |
+/etc/e-smith/events/actions/bugzilla |