smeserver-update/createlinks

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-03-25 16:39:00 +01:00
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
2024-03-25 22:44:36 +01:00
use File::Basename;
use File::Path;
2024-03-25 16:39:00 +01:00
2024-03-25 22:44:36 +01:00
foreach my $file (qw(/etc/dnf/dnf.conf /etc/dnf/protected.d/smeserver.conf
/etc/yum.smerepos.d/sme-base.repo /etc/dnf/automatic.conf))
2024-03-25 16:39:00 +01:00
{
2024-03-25 22:44:36 +01:00
templates2events($file, qw(dnf-modify bootstrap-console-save smeserver-update-update));
}
2024-03-25 16:39:00 +01:00
2024-03-25 22:44:36 +01:00
templates2events("/etc/crontab", "dnf-modify");
2024-03-25 16:39:00 +01:00
2024-03-25 22:44:36 +01:00
for ( qw(install remove update) )
{
event_link("dnf-action", "dnf-$_", "20");
}
2024-03-25 16:39:00 +01:00
2024-08-21 11:55:09 +02:00
safe_symlink("restart", "root/etc/e-smith/events/dnf-modify/services2adjust/dnf");
2024-03-25 16:39:00 +01:00
2024-03-25 22:44:36 +01:00
for ( qw(bootstrap-console-save dnf-update smeserver-update-update) )
{
event_link("rpm-import-keys", $_, "10");
}
my $event= "smeserver-update-update";
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
event_link("dnf_modules", 'post-install', "70");
2024-03-25 22:44:36 +01:00
#--------------------------------------------------
# functions for manager panel
#--------------------------------------------------
panel_link("yum", "manager");