2023-06-03 09:28:35 +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 = '${REPO_NAME}-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
|
|
|
|
))
|
|
|
|
{
|
|
|
|
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 12:03:57 +02:00
|
|
|
#event_services($$event, 'xxxx' => 'restart', 'yyyy' => 'restart');
|
2023-06-03 09:28:35 +02:00
|
|
|
|
|
|
|
#Backup contrib files
|
|
|
|
# backup_includes("${REPO_NAME}", qw(
|
|
|
|
# files(s) to be backed up
|
|
|
|
#));
|
|
|
|
|
|
|
|
#Other possible entries:
|
|
|
|
#Server manager entry
|
|
|
|
#panel_link("${REPO_NAME}", 'manager');
|
|
|
|
#Events to ${REPO_NAME}
|
|
|
|
#$$event = '${REPO_NAME}-${REPO_NAME}';
|
|
|
|
# safe_symlink("restart", "root/etc/e-smith/events/$$event/services2adjust/${REPO_NAME}");
|
|
|
|
# templates2events("/etc/${REPO_NAME}/${REPO_NAME}.conf", $$event);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|