Code source wiki de Install
Modifié par Administrator le 2012/11/20 05:24
Afficher les derniers auteurs
author | version | line-number | content |
---|---|---|---|
1 | = Mail-Archive Application Install = | ||
2 | |||
3 | {{velocity}} | ||
4 | #if(!$xwiki.hasAdminRights()) | ||
5 | You are running this script as a non admin. It will have no effect. Login as admin. | ||
6 | #else | ||
7 | This script automatically set the owner of the pages in MailArchiveCode space and in some pages of MailArchive space. This will allow the priviledged scripts included in them to work. | ||
8 | The script will also install the schedulable job, ,and set-up translations. | ||
9 | |||
10 | #end | ||
11 | |||
12 | #if(!$xwiki.exists("XWiki.LiveTableResultsMacros")) | ||
13 | #warning("The LiveTable component is not installed properly. If you are running XWiki 1.8.x, you will need to download the LiveTable component from http://code.xwiki.org") | ||
14 | #end | ||
15 | |||
16 | #if($request.confirm=="1") | ||
17 | Assigning programming rights to the following pages: | ||
18 | #else | ||
19 | [[Confirm assigning programming rights to the following pages:>>$doc.fullName||queryString=confirm=1]] | ||
20 | #end | ||
21 | |||
22 | #foreach($item in $xwiki.searchDocuments("where doc.web='MailArchiveCode' or doc.fullName like 'XWiki.LiveTable%' or (doc.space = 'MailArchive' and doc.name in ('WebHome','Statistics','Admin','Loading','Operate','Purge','RemoteIntegration')) order by doc.fullName asc")) | ||
23 | * $item #if($request.confirm=="1") $xwiki.getDocument($item).save() #end | ||
24 | |||
25 | #end | ||
26 | |||
27 | #set($transdoc = $xwiki.getDocument("XWiki.XWikiPreferences")) | ||
28 | #set($ok = $transdoc.use("XWiki.XWikiPreferences")) | ||
29 | #set($transprefs = $transdoc.getValue("documentBundles")) | ||
30 | #if($transprefs.indexOf("MailArchiveCode.Translations")==-1) | ||
31 | #if($request.confirm=="1") | ||
32 | #set($transprefs = "${transprefs},MailArchiveCode.Translations") | ||
33 | #set($ok = $transdoc.set("documentBundles", $transprefs)) | ||
34 | #set($ok = $transprefs.save()) | ||
35 | #end | ||
36 | * Added translation bundle to XWiki Preferences | ||
37 | #end | ||
38 | |||
39 | #if($transprefs.indexOf("XWiki.LiveTableTranslations")==-1 && $xwiki.exists("XWiki.LiveTableTranslations")) | ||
40 | #if($request.confirm=="1") | ||
41 | #set($transprefs = "${transprefs},XWiki.LiveTableTranslations") | ||
42 | #set($ok = $transdoc.set("documentBundles", $transprefs)) | ||
43 | #set($ok = $transprefs.save()) | ||
44 | #end | ||
45 | * Added livetable translation bundle to XWiki Preferences | ||
46 | #end | ||
47 | {{/velocity}} | ||
48 | == Additional Install steps == | ||
49 | |||
50 | You should go to the [[Administration page>>MailArchive.Admin]] to set-up at least one email server / folder to read new emails, as well as other settings. | ||
51 | |||
52 | Finally you can setup automatic loading by activating the job in the [[scheduler>>Scheduler.WebHome]]. Options for loading sessions can be setup through [[MailArchive.Loading]] page. | ||
53 | |||
54 | |||
55 | [[Back to Mailing-list Archive Home Page>>MailArchive.WebHome]] |