initial commit of file from CVS for smeserver-wsdd on Sat Sep 7 21:16:38 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:16:38 +10:00
parent e42f9a02d2
commit 475a737c81
18 changed files with 544 additions and 2 deletions

42
createlinks Normal file
View File

@@ -0,0 +1,42 @@
#! /usr/bin/perl -w
# Need some thought on when the templates should be expanded and when the action should be called.
use esmith::Build::CreateLinks qw(:all);
# my $event = "wsdd-update";
# wsdd-update
foreach (qw(
/usr/lib/systemd/system/wsdd.service.d/50-koozali.conf
))
{
templates2events("$_", qw(
post-upgrade
console-save
bootstrap-console-save
remoteaccess-update
ibay-modify
ibay-create
ibay-delete
workgroup-update
));
}
# rpm update action (invoked by yum on install and update
$contrib = "smeserver-wsdd";
$event = "$contrib-update";
event_actions($event, qw(
systemd-default 10
));
event_templates($event, qw(
/usr/lib/systemd/system/wsdd.service.d/50-koozali.conf
/etc/systemd/system-preset/49-koozali.preset
/etc/rc.d/init.d/masq
));
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/wsdd");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/masq");