smeserver-certificates/createlinks
Jean-Philippe Pialasse e631a1dffc * Wed Feb 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0-2.sme
- move smanager panel in package [SME: 12916]
- add Requires
- add templates from smeserver-letsencrypt
- use /var/www/html/.well-known/acme-challenge
2025-02-13 01:05:14 -05:00

75 lines
1.6 KiB
Perl

#!/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
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");
#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');
use esmith::Build::Backup qw(:all);
backup_includes("smeserver-certificates", qw(
/etc/dehydrated/
));
backup_excludes("smeserver-certificates", qw(
/etc/dehydrated/config
/etc/dehydrated/domains.txt
));