You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smeserver-yum/createlinks

38 lines
1.1 KiB
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
use File::Basename;
use File::Path;
foreach my $file (qw(/etc/yum.conf /etc/yum/protected.d/smeserver.conf
/etc/yum.smerepos.d/sme-base.repo /etc/yum/yum-cron.conf))
{
templates2events($file, qw(yum-modify bootstrap-console-save smeserver-yum-update));
}
templates2events("/etc/crontab", "yum-modify");
for ( qw(install remove update) )
{
event_link("yum-action", "yum-$_", "20");
}
safe_symlink("restart", "root/etc/e-smith/events/yum-modify/services2adjust/yum");
for ( qw(bootstrap-console-save yum-update smeserver-yum-update) )
{
event_link("yum-import-keys", $_, "10");
}
my $event= "smeserver-yum-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");
#--------------------------------------------------
# functions for manager panel
#--------------------------------------------------
panel_link("yum", "manager");