initial commit of file from CVS for smeserver-radicale on Sat Sep 7 20:59:16 AEST 2024
This commit is contained in:
55
createlinks
Normal file
55
createlinks
Normal file
@@ -0,0 +1,55 @@
|
||||
#!/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
|
||||
));
|
||||
|
Reference in New Issue
Block a user