/[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.1 - (hide annotations) (download)
Wed Aug 24 05:41:05 2022 UTC (22 months, 2 weeks ago) by jpp
Branch: MAIN
* 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     +++ smeserver-loginscript-0.2/createlinks 2022-08-24 01:38:30.743000000 -0400
4     @@ -15,27 +15,6 @@
5     ));
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    
30     #--------------------------------------------------
31     # functions for manager panel
32     @@ -54,3 +33,8 @@
33     #event_link("reload-samba", $event, "50");
34     event_link("conf-loginscript", $event, "75");
35    
36     +$event="smeserver-loginscript-update";
37     +safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/smbd");
38     +templates2events("/etc/smb.conf",$event)
39     +event_link("conf-loginscript", $event, "75");
40     +

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