38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
|
#!/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");
|