smeserver-dmarc-srg/createlinks

46 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-06-21 11:39:48 +02: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
$event = 'smeserver-dmarc-srg-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
# 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
2023-06-21 15:19:40 +02:00
/etc/httpd/conf/httpd.conf
/etc/cron.daily/dmarc-srg.cron
/opt/config/conf.php
2023-06-21 11:39:48 +02:00
))
{
templates2events( $file, $event );
};
#action needed in case we have a systemd unit
event_link('systemd-default', $event, '10');
event_link('systemd-reload', $event, '50');
#services we might need to restart
2023-06-21 15:19:40 +02:00
event_services($event, 'httpd-e-smith' => 'restart');
2023-06-21 11:39:48 +02:00
#Backup contrib files
# backup_includes("smeserver-dmarc-srg", qw(
# files(s) to be backed up
#));
#Other possible entries:
#Server manager entry
#panel_link("smeserver-dmarc-srg", 'manager');
#Events to smeserver-dmarc-srg
2023-06-21 15:19:40 +02:00
#$event = 'smeserver-dmarc-srg-';
2023-06-21 11:39:48 +02:00
# safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smeserver-dmarc-srg");
# templates2events("/etc/smeserver-dmarc-srg/smeserver-dmarc-srg.conf", $event);