diff -Nur smeserver-horde-1.0.0.old/createlinks smeserver-horde-1.0.0/createlinks --- smeserver-horde-1.0.0.old/createlinks 2016-06-17 12:40:01.000000000 -0400 +++ smeserver-horde-1.0.0/createlinks 2020-03-27 12:35:47.299000000 -0400 @@ -10,6 +10,7 @@ bootstrap-console-save console-save email-update + smeserver-horde-update )); } @@ -29,6 +30,7 @@ qw( bootstrap-console-save email-update + smeserver-horde-update )); } @@ -48,6 +50,7 @@ qw( bootstrap-console-save email-update + smeserver-horde-update )); } @@ -65,7 +68,7 @@ foreach (qw(conf.php)) { templates2events("/usr/share/horde/kronolith/config/$_", - qw(email-update bootstrap-console-save)); + qw(email-update bootstrap-console-save smeserver-horde-update)); } foreach (qw(conf.php)) @@ -81,7 +84,7 @@ foreach (qw(conf.php)) { templates2events("/usr/share/horde/mnemo/config/$_", - qw(email-update bootstrap-console-save)); + qw(email-update bootstrap-console-save smeserver-horde-update)); } foreach (qw(conf.php)) @@ -97,7 +100,7 @@ foreach (qw(conf.php)) { templates2events("/usr/share/horde/nag/config/$_", - qw(email-update bootstrap-console-save)); + qw(email-update bootstrap-console-save smeserver-horde-update)); } foreach (qw(conf.php)) @@ -112,7 +115,7 @@ foreach (qw(attributes.local.php backends.local.php conf.php)) { templates2events("/usr/share/horde/turba/config/$_", - qw(email-update bootstrap-console-save)); + qw(email-update bootstrap-console-save smeserver-horde-update)); } foreach (qw(attributes.local.php backends.local.php conf.php)) @@ -182,6 +185,51 @@ event_link("conf-horde-cache", $event, "99"); +#-------------------------------------------------- +# actions for smeserver-horde-update event +#-------------------------------------------------- + +$event = "smeserver-horde-update"; + +templates2events( + "/usr/share/horde/smeserver/mysql_set_horde_password.sql", + $event); +foreach (qw( + 20mysql_migrate_horde + 21horde.mysql_set_password + 25horde_mysql_create_db + 30horde_mysql_update_privs + 31horde_mysql_create_tables + 32turba_mysql_create_objects + 80kronolith_db_upgrade + 85kronolith_utc_upgrade + 99Ingo_Datatree_to_SQL + 99Kronolith_Datatree_to_SQL + 99Mnemo_Datatree_to_SQL + 99Nag_Datatree_to_SQL + 99Turba_Datatree_to_SQL + )) +{ + templates2events("/etc/e-smith/sql/init/$_", $event); +} + +event_link("conf-horde-cache", $event, "99"); + +templates2events( + "/etc/httpd/conf/httpd.conf", + $event); + +foreach $service ( qw(php55-php-fpm php56-php-fpm php70-php-fpm php71-php-fpm php72-php-fpm php73-php-fpm php74-php-fpm) ){ + safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/$service"); +} +foreach $service ( qw(httpd-e-smith) ){ + safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/$service"); +} +foreach $service ( qw(mysql.init) ){ + safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/$service"); +} + + #--------------------------------------------------------- # actions for email-update event if horde cache is enabled #---------------------------------------------------------