initial commit of file from CVS for smeserver-wsdd on Sat Sep 7 21:16:38 AEST 2024
This commit is contained in:
42
createlinks
Normal file
42
createlinks
Normal 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");
|
||||
|
||||
|
Reference in New Issue
Block a user