1 |
diff -urN smeserver-tw-logonscript-1.5.old/createlinks smeserver-tw-logonscript-1.5/createlinks |
2 |
--- smeserver-tw-logonscript-1.5.old/createlinks 2015-09-08 15:18:48.000000000 +0100 |
3 |
+++ smeserver-tw-logonscript-1.5/createlinks 2021-03-29 11:00:10.493377369 +0100 |
4 |
@@ -1,7 +1,27 @@ |
5 |
#!/usr/bin/perl -w |
6 |
- |
7 |
use esmith::Build::CreateLinks qw(:all); |
8 |
-use File::Basename; |
9 |
+# our event specific for updating with yum without reboot |
10 |
+$event = 'smeserver-tw-logonscript-update'; |
11 |
+#add here the path to your templates needed to expand |
12 |
+#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
13 |
|
14 |
-symlink("/etc/e-smith/web/functions/ibayletters","root/etc/e-smith/web/panels/manager/cgi-bin/ibayletters"); |
15 |
+foreach my $file (qw( |
16 |
+ /etc/systemd/system-preset/49-koozali.preset |
17 |
+ /home/e-smith/files/samba/netlogon/netlogon.bat |
18 |
+)) |
19 |
+{ |
20 |
+ templates2events( $file, $event ); |
21 |
+} |
22 |
+#action needed in case we have a systemd unit |
23 |
+event_link('systemd-default', $event, '10'); |
24 |
+event_link('systemd-reload', $event, '50'); |
25 |
+#action specific to this package |
26 |
+#event_link('action', $event, '30'); |
27 |
+#services we need to restart |
28 |
+#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); |
29 |
+#and Server Manager panel link |
30 |
+panel_link('ibayletters', 'manager'); |
31 |
+ |
32 |
+use File::Basename; |
33 |
+#symlink("/etc/e-smith/web/functions/ibayletters","root/etc/e-smith/web/panels/manager/cgi-bin/ibayletters"); |
34 |
templates2events("/home/e-smith/files/samba/netlogon/netlogon.bat", qw(workgroup-update bootstrap-console-save)); |