1 |
diff -Nur smeserver-userpanel-0.9-old/createlinks smeserver-userpanel-0.9/createlinks |
2 |
--- smeserver-userpanel-0.9-old/createlinks 2013-12-04 13:15:08.000000000 +0100 |
3 |
+++ smeserver-userpanel-0.9/createlinks 2013-12-04 13:35:46.000000000 +0100 |
4 |
@@ -4,10 +4,18 @@ |
5 |
use File::Basename; |
6 |
use File::Path; |
7 |
|
8 |
+##link to panel |
9 |
panel_link("userpanelaccess", "manager"); |
10 |
|
11 |
+##actions conf-userpanelsymlinks |
12 |
for my $event (qw( conf-userpanel bootstrap-console-save console-save post-upgrade remoteaccess-update )){ |
13 |
event_link("conf-userpanelsymlinks", $event, "70");} |
14 |
+ |
15 |
+##actions link to translations |
16 |
+ for my $event (qw( conf-userpanel bootstrap-console-save console-save post-upgrade remoteaccess-update )){ |
17 |
+event_link("conf-linktotranslations", $event, "70");} |
18 |
+ |
19 |
+##event conf-userpanel |
20 |
my $event = "conf-userpanel"; |
21 |
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-admin"); |
22 |
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
23 |
diff -Nur smeserver-userpanel-0.9-old/root/etc/e-smith/events/actions/conf-linktotranslations smeserver-userpanel-0.9/root/etc/e-smith/events/actions/conf-linktotranslations |
24 |
--- smeserver-userpanel-0.9-old/root/etc/e-smith/events/actions/conf-linktotranslations 1970-01-01 01:00:00.000000000 +0100 |
25 |
+++ smeserver-userpanel-0.9/root/etc/e-smith/events/actions/conf-linktotranslations 2013-12-04 13:35:23.000000000 +0100 |
26 |
@@ -0,0 +1,8 @@ |
27 |
+#!/bin/bash |
28 |
+trad=`ls /etc/e-smith/locale/` |
29 |
+for lang in $trad |
30 |
+do |
31 |
+/bin/mkdir -p /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user |
32 |
+/bin/ln -sf /etc/e-smith/locale/$lang/etc/e-smith/web/functions /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user/cgi-bin |
33 |
+done |
34 |
+ |