40 lines
1.7 KiB
Perl
40 lines
1.7 KiB
Perl
#!/usr/bin/perl -w
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
|
|
templates2events("/etc/dovecot/dovecot.conf", qw(email-update bootstrap-console-save ssl-update smeserver-dovecot-update ip-change));
|
|
templates2events("/etc/dovecot/ssl/imapd.pem", qw(email-update bootstrap-console-save ssl-update smeserver-dovecot-update ip-change));
|
|
templates2events("/etc/dovecot/master.users", qw(email-update bootstrap-console-save smeserver-dovecot-update));
|
|
templates2events("/etc/pam.d/dovecotadmin", qw(email-update bootstrap-console-save smeserver-dovecot-update));
|
|
|
|
safe_symlink("sigusr2", "root/etc/e-smith/events/email-update/services2adjust/dovecot");
|
|
|
|
event_link("adjust-dovecot", "email-update", "02");
|
|
event_link("adjust-dovecot", "bootstrap-console-save", "02");
|
|
|
|
#smeserver-dovecot-update
|
|
my $event = "smeserver-dovecot-update";
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dovecot");
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
|
|
event_link("adjust-dovecot", $event, "02");
|
|
event_link("systemd-reload", $event, "89");
|
|
event_link("systemd-default", $event, "88");
|
|
templates2events("/etc/rsyslog.conf", $event);
|
|
|
|
# in case the ip change
|
|
safe_symlink("sigusr2", "root/etc/e-smith/events/ip-change/services2adjust/dovecot");
|
|
|
|
# dovecot-extras
|
|
event_link("dovecot-acl", $event, "30");
|
|
event_link("dovecot-compile-sieve", $event, "40");
|
|
event_link("dovecot-acl", "email-update", "85");
|
|
event_link("dovecot-acl", "user-create", "85");
|
|
event_link("dovecot-acl", "post-upgrade", "85");
|
|
event_link("dovecot-compile-sieve", "email-update", "86");
|
|
|
|
safe_touch("root/home/e-smith/db/dovecot/sharedmailbox.db");
|
|
|
|
templates2events("/home/e-smith/files/public/dovecot-acl", "email-update");
|
|
|