smeserver-radicale/createlinks

56 lines
1.2 KiB
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
#expand specific roundcube template
for my $event (qw(
bootstrap-console-save
radicale-update
console-save
))
{
templates2events("/etc/radicale/logging", $event);
templates2events("/etc/radicale/config", $event);
}
#restart specific services to avoid to reboot after the installation
for my $event (qw(
radicale-update
console-save
))
{
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/radicale");
event_link("radicale-pip-upgrade", $event, "10");
}
#only with radicale-update
templates2events("/etc/hosts.allow", 'radicale-update');
templates2events("/etc/rc.d/init.d/masq", 'radicale-update');
templates2events("/etc/services", 'radicale-update');
safe_symlink("adjust", "root/etc/e-smith/events/radicale-update/services2adjust/masq");
my $pkg= "smeserver-radicale";
my $event = "${pkg}-update";
event_actions($event, qw(
radicale-pip-upgrade 10
systemd-default 88
systemd-reload 89
));
event_templates($event, qw(
/etc/radicale/logging
/etc/radicale/config
/etc/hosts.allow
/etc/rc.d/init.d/masq
/etc/services
));
event_services($event, qw(
radicale restart
masq adjust
));