62 lines
1.9 KiB
Perl
62 lines
1.9 KiB
Perl
#! /usr/bin/perl -w
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
panel_link("ddclient", 'manager');
|
|
|
|
# our event specific for updating with yum without reboot
|
|
$event = "smeserver-ddclient-update";
|
|
|
|
foreach my $file (qw(
|
|
/etc/systemd/system-preset/49-koozali.preset
|
|
/etc/ddclient/ddclient.conf
|
|
/etc/ppp/ip-up.local
|
|
/usr/lib/systemd/system/ddclient.service.d/50koozali.conf
|
|
))
|
|
{
|
|
templates2events( $file, $event );
|
|
}
|
|
|
|
|
|
#action needed in case we have a systemd unit
|
|
event_link("systemd-default", $event, "10");
|
|
event_link("systemd-reload", $event, "50");
|
|
|
|
#action specific to this package
|
|
#event_link("conf-timezone", $event, "30");
|
|
|
|
|
|
#services we need to restart
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient");
|
|
|
|
|
|
#service_link_enhanced("ddclient", "S65", "7");
|
|
|
|
|
|
$event = 'domain-create';
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient");
|
|
templates2events("/etc/ddclient/ddclient.conf", $event);
|
|
|
|
$event = 'domain-delete';
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient");
|
|
templates2events("/etc/ddclient/ddclient.conf", $event);
|
|
|
|
$event = 'domain-modify';
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient");
|
|
templates2events("/etc/ddclient/ddclient.conf", $event);
|
|
|
|
$event = 'bootstrap-console-save';
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient");
|
|
templates2events("/etc/ddclient/ddclient.conf", $event);
|
|
|
|
$event = 'console-save';
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient");
|
|
templates2events("/etc/ddclient/ddclient.conf", $event);
|
|
|
|
#$event = 'post-upgrade';
|
|
# templates2events("/etc/ddclient/ddclient.conf", $event);
|
|
# templates2events("/etc/ppp/ip-up.local", $event);
|
|
|
|
# and create an empty cache
|
|
# safe_touch("/var/cache/ddclient/ddclient.cache")
|