1 |
jpp |
1.1 |
diff -Nur --no-dereference smeserver-loginscript-0.2.old/createlinks smeserver-loginscript-0.2/createlinks |
2 |
|
|
--- smeserver-loginscript-0.2.old/createlinks 2022-08-24 01:35:47.328000000 -0400 |
3 |
jpp |
1.2 |
+++ smeserver-loginscript-0.2/createlinks 2022-08-24 01:44:52.835000000 -0400 |
4 |
|
|
@@ -15,34 +15,6 @@ |
5 |
jpp |
1.1 |
)); |
6 |
|
|
} |
7 |
|
|
|
8 |
|
|
-sub panel_link |
9 |
|
|
-{ |
10 |
|
|
- my ($function, $panel) = @_; |
11 |
|
|
- |
12 |
|
|
- unlink "root/etc/e-smith/web/panels/$panel/cgi-bin/$function"; |
13 |
|
|
- symlink("../../../functions/$function", |
14 |
|
|
- "root/etc/e-smith/web/panels/$panel/cgi-bin/$function") |
15 |
|
|
- or die "Can't symlink to root/etc/e-smith/web/panels/$panel". |
16 |
|
|
- "/cgi-bin/$function: $!"; |
17 |
|
|
-} |
18 |
|
|
- |
19 |
|
|
-sub event_link |
20 |
|
|
-{ |
21 |
|
|
- my ($action, $event, $level) = @_; |
22 |
|
|
- |
23 |
|
|
- unlink "root/etc/e-smith/events/${event}/S${level}${action}"; |
24 |
|
|
- symlink("../actions/${action}", |
25 |
|
|
- "root/etc/e-smith/events/${event}/S${level}${action}") |
26 |
|
|
- or die "Can't symlink to " . |
27 |
|
|
- "root/etc/e-smith/events/${event}/S${level}${action}: $!"; |
28 |
|
|
-} |
29 |
jpp |
1.2 |
- |
30 |
|
|
-#-------------------------------------------------- |
31 |
|
|
-# functions for manager panel |
32 |
|
|
-#-------------------------------------------------- |
33 |
|
|
-my $panel = "manager"; |
34 |
|
|
- |
35 |
|
|
-panel_link("loginscript", $panel); |
36 |
jpp |
1.1 |
|
37 |
|
|
#-------------------------------------------------- |
38 |
jpp |
1.2 |
# actions for conf-logondrive event: |
39 |
|
|
@@ -54,3 +26,8 @@ |
40 |
jpp |
1.1 |
#event_link("reload-samba", $event, "50"); |
41 |
|
|
event_link("conf-loginscript", $event, "75"); |
42 |
|
|
|
43 |
|
|
+$event="smeserver-loginscript-update"; |
44 |
|
|
+safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/smbd"); |
45 |
jpp |
1.2 |
+templates2events("/etc/smb.conf",$event); |
46 |
jpp |
1.1 |
+event_link("conf-loginscript", $event, "75"); |
47 |
|
|
+ |