2024-12-12 17:38:04 +01:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
use esmith::Build::Backup qw(:all);
|
|
|
|
# our event specific for updating with yum without reboot
|
2025-02-13 07:05:14 +01:00
|
|
|
my $event = 'smeserver-certificates-update';
|
|
|
|
|
|
|
|
|
|
|
|
foreach (qw(
|
|
|
|
/etc/dehydrated/domains.txt
|
|
|
|
/etc/dehydrated/config
|
|
|
|
/usr/bin/hook-script.sh
|
|
|
|
))
|
|
|
|
{
|
|
|
|
templates2events("$_", qw(
|
|
|
|
post-upgrade
|
|
|
|
bootstrap-console-save
|
|
|
|
console-save
|
|
|
|
domain-create
|
|
|
|
domain-delete
|
|
|
|
domain-modify
|
|
|
|
host-create
|
|
|
|
host-delete
|
|
|
|
host-modify
|
|
|
|
smeserver-certificates-update
|
|
|
|
letsencrypt-config
|
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach (qw(
|
|
|
|
/etc/cron.d/dehydrated
|
|
|
|
))
|
|
|
|
{
|
|
|
|
templates2events("$_", qw(
|
|
|
|
post-upgrade
|
|
|
|
bootstrap-console-save
|
|
|
|
console-save
|
|
|
|
http-proxy-update
|
|
|
|
smeserver-certificates-update
|
|
|
|
letsencrypt-config
|
|
|
|
));
|
|
|
|
}
|
|
|
|
event_link("letsencrypt-kill-dehydrated-timer", $event, "91");
|
|
|
|
|
|
|
|
|
2024-12-12 17:38:04 +01:00
|
|
|
#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
|
|
|
|
|
|
|
|
# Maybe need ths in here as well:
|
|
|
|
# /etc/dar/DailyBackup.dcf - if backup requested
|
|
|
|
|
|
|
|
foreach my $file (qw(
|
|
|
|
/etc/systemd/system-preset/49-koozali.preset
|
|
|
|
))
|
|
|
|
{
|
|
|
|
templates2events( $file, $event );
|
|
|
|
};
|
|
|
|
#action needed in case we have a systemd unit
|
|
|
|
event_link('systemd-default', $event, '10');
|
|
|
|
event_link('systemd-reload', $event, '50');
|
|
|
|
|
2025-02-13 07:05:14 +01:00
|
|
|
use esmith::Build::Backup qw(:all);
|
|
|
|
backup_includes("smeserver-certificates", qw(
|
|
|
|
/etc/dehydrated/
|
|
|
|
));
|
2024-12-12 17:38:04 +01:00
|
|
|
|
2025-02-13 07:05:14 +01:00
|
|
|
backup_excludes("smeserver-certificates", qw(
|
|
|
|
/etc/dehydrated/config
|
|
|
|
/etc/dehydrated/domains.txt
|
|
|
|
));
|
2024-12-12 17:38:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|