/[smecontribs]/rpms/smeserver-loginscript/contribs10/smeserver-loginscript-0.2-sme10.patch
ViewVC logotype

Annotation of /rpms/smeserver-loginscript/contribs10/smeserver-loginscript-0.2-sme10.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Wed Aug 24 05:48:54 2022 UTC (2 years, 2 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-loginscript-0_2-9, HEAD
Changes since 1.1: +12 -5 lines
* Wed Aug 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-9.sme
- import to SME10

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     +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed