1 |
jpp |
1.1 |
diff -Nur smeserver-horde-1.0.0.old/createlinks smeserver-horde-1.0.0/createlinks |
2 |
|
|
--- smeserver-horde-1.0.0.old/createlinks 2016-06-17 12:40:01.000000000 -0400 |
3 |
|
|
+++ smeserver-horde-1.0.0/createlinks 2020-03-27 12:35:47.299000000 -0400 |
4 |
|
|
@@ -10,6 +10,7 @@ |
5 |
|
|
bootstrap-console-save |
6 |
|
|
console-save |
7 |
|
|
email-update |
8 |
|
|
+ smeserver-horde-update |
9 |
|
|
)); |
10 |
|
|
} |
11 |
|
|
|
12 |
|
|
@@ -29,6 +30,7 @@ |
13 |
|
|
qw( |
14 |
|
|
bootstrap-console-save |
15 |
|
|
email-update |
16 |
|
|
+ smeserver-horde-update |
17 |
|
|
)); |
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
@@ -48,6 +50,7 @@ |
21 |
|
|
qw( |
22 |
|
|
bootstrap-console-save |
23 |
|
|
email-update |
24 |
|
|
+ smeserver-horde-update |
25 |
|
|
)); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
@@ -65,7 +68,7 @@ |
29 |
|
|
foreach (qw(conf.php)) |
30 |
|
|
{ |
31 |
|
|
templates2events("/usr/share/horde/kronolith/config/$_", |
32 |
|
|
- qw(email-update bootstrap-console-save)); |
33 |
|
|
+ qw(email-update bootstrap-console-save smeserver-horde-update)); |
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
foreach (qw(conf.php)) |
37 |
|
|
@@ -81,7 +84,7 @@ |
38 |
|
|
foreach (qw(conf.php)) |
39 |
|
|
{ |
40 |
|
|
templates2events("/usr/share/horde/mnemo/config/$_", |
41 |
|
|
- qw(email-update bootstrap-console-save)); |
42 |
|
|
+ qw(email-update bootstrap-console-save smeserver-horde-update)); |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
foreach (qw(conf.php)) |
46 |
|
|
@@ -97,7 +100,7 @@ |
47 |
|
|
foreach (qw(conf.php)) |
48 |
|
|
{ |
49 |
|
|
templates2events("/usr/share/horde/nag/config/$_", |
50 |
|
|
- qw(email-update bootstrap-console-save)); |
51 |
|
|
+ qw(email-update bootstrap-console-save smeserver-horde-update)); |
52 |
|
|
} |
53 |
|
|
|
54 |
|
|
foreach (qw(conf.php)) |
55 |
|
|
@@ -112,7 +115,7 @@ |
56 |
|
|
foreach (qw(attributes.local.php backends.local.php conf.php)) |
57 |
|
|
{ |
58 |
|
|
templates2events("/usr/share/horde/turba/config/$_", |
59 |
|
|
- qw(email-update bootstrap-console-save)); |
60 |
|
|
+ qw(email-update bootstrap-console-save smeserver-horde-update)); |
61 |
|
|
} |
62 |
|
|
|
63 |
|
|
foreach (qw(attributes.local.php backends.local.php conf.php)) |
64 |
|
|
@@ -182,6 +185,51 @@ |
65 |
|
|
|
66 |
|
|
event_link("conf-horde-cache", $event, "99"); |
67 |
|
|
|
68 |
|
|
+#-------------------------------------------------- |
69 |
|
|
+# actions for smeserver-horde-update event |
70 |
|
|
+#-------------------------------------------------- |
71 |
|
|
+ |
72 |
|
|
+$event = "smeserver-horde-update"; |
73 |
|
|
+ |
74 |
|
|
+templates2events( |
75 |
|
|
+ "/usr/share/horde/smeserver/mysql_set_horde_password.sql", |
76 |
|
|
+ $event); |
77 |
|
|
+foreach (qw( |
78 |
|
|
+ 20mysql_migrate_horde |
79 |
|
|
+ 21horde.mysql_set_password |
80 |
|
|
+ 25horde_mysql_create_db |
81 |
|
|
+ 30horde_mysql_update_privs |
82 |
|
|
+ 31horde_mysql_create_tables |
83 |
|
|
+ 32turba_mysql_create_objects |
84 |
|
|
+ 80kronolith_db_upgrade |
85 |
|
|
+ 85kronolith_utc_upgrade |
86 |
|
|
+ 99Ingo_Datatree_to_SQL |
87 |
|
|
+ 99Kronolith_Datatree_to_SQL |
88 |
|
|
+ 99Mnemo_Datatree_to_SQL |
89 |
|
|
+ 99Nag_Datatree_to_SQL |
90 |
|
|
+ 99Turba_Datatree_to_SQL |
91 |
|
|
+ )) |
92 |
|
|
+{ |
93 |
|
|
+ templates2events("/etc/e-smith/sql/init/$_", $event); |
94 |
|
|
+} |
95 |
|
|
+ |
96 |
|
|
+event_link("conf-horde-cache", $event, "99"); |
97 |
|
|
+ |
98 |
|
|
+templates2events( |
99 |
|
|
+ "/etc/httpd/conf/httpd.conf", |
100 |
|
|
+ $event); |
101 |
|
|
+ |
102 |
|
|
+foreach $service ( qw(php55-php-fpm php56-php-fpm php70-php-fpm php71-php-fpm php72-php-fpm php73-php-fpm php74-php-fpm) ){ |
103 |
|
|
+ safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/$service"); |
104 |
|
|
+} |
105 |
|
|
+foreach $service ( qw(httpd-e-smith) ){ |
106 |
|
|
+ safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/$service"); |
107 |
|
|
+} |
108 |
|
|
+foreach $service ( qw(mysql.init) ){ |
109 |
|
|
+ safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/$service"); |
110 |
|
|
+} |
111 |
|
|
+ |
112 |
|
|
+ |
113 |
|
|
#--------------------------------------------------------- |
114 |
|
|
# actions for email-update event if horde cache is enabled |
115 |
|
|
#--------------------------------------------------------- |