diff -urN smeserver-dovecot-extras-0.1.6.old/createlinks smeserver-dovecot-extras-0.1.6/createlinks --- smeserver-dovecot-extras-0.1.6.old/createlinks 2018-03-27 15:31:26.000000000 +0100 +++ smeserver-dovecot-extras-0.1.6/createlinks 2021-04-06 14:49:22.574289250 +0100 @@ -1,7 +1,30 @@ #!/usr/bin/perl -w use esmith::Build::CreateLinks qw(:all); +# Koozali event specific for updating with yum without reboot +$event = "smeserver-dovecot-extras-update"; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event +# +foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset + /home/e-smith/files/public/dovecot-acl + )) + { + templates2events( $file, $event ); + } +#action needed in case we have a systemd unit +event_link("systemd-default", $event, "10"); +event_link("systemd-reload", $event, "50"); +#action specific to this package +event_link("dovecot-acl", $event, "30"); +event_link("dovecot-compile-sieve", $event, "40"); +#services we need to restart +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service"); +#and Server Manager panel link +#panel_link('somefunction', 'manager'); +# event_link("dovecot-acl", "email-update", "85"); event_link("dovecot-acl", "user-create", "85"); event_link("dovecot-acl", "post-upgrade", "85");