source: trunk/gsdl/Install.sh@ 7068

Last change on this file since 7068 was 7068, checked in by mdewsnip, 20 years ago

Added some more missing strings and all the functionality for setting up default languages for Greenstone and the GLI.

  • Property svn:executable set to *
  • Property svn:mime-type set to application/octet-stream
File size: 73.4 KB
Line 
1#!/bin/sh
2
3## Install.sh -- Install Greenstone
4
5
6# set iscdrom variable to "yes" for a cdrom installation
7iscdrom="yes"
8
9# This string will always be in English so is not translated
10echo "Which version of Greenstone do you want installed: "
11echo "[E]nglish, (F)rench, (R)ussian or (S)panish?"
12printf "%s" "> "
13read gsdllang
14gsdllang=`echo $gsdllang | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15
16
17# ------------------------------------------------------------------------------
18# FRENCH STRINGS
19# ------------------------------------------------------------------------------
20if [ "$gsdllang" == "f" ] || [ "$gsdllang" == "french" ]; then
21
22 gsdllangcode=fr
23
24 itext0="Greeenstone n'a pu être installé"
25
26 itext1="Install.h doit être exécuté à partir du répertoire dans lequel il réside."
27
28 itext2="ERREUR: n'a pu trouver l'emplacement "
29
30 itext3cd="Ce script va installer Greenstone sur votre système. Vous pourriez
31parcourir le document Install.pdf présent dans le repertoire des
32documents de ce CD ROM avant de poursuivre avec l'installation."
33
34 itext3web="Ce script va installer Greenstone sur votre système. Vous pourrier télécharger et parcourir le Guide d'Installateur de Greenstone (Install.pdf) avant de poursuivre avec l'installation."
35
36 itext3="Notez que lorsque l'on vous demande de taper une réponse, appuyer
37sur \"entrer\" sélectionnera le choix par défaut (indiqué entre
38crochets [] à la fin de chaque question). Si vous hésitez sur
39l'option à choisir, choisissez l'option par défaut.
40
41Notez aussi que Install.sh affiche des informations concernant la
42commande exécutée sur votre système sous la forme:
43\"--> Install.sh: [command]\".
44
45Dans cette installation, il est supposé que vous ayez déjà un
46serveur Web installé sur votre système.
47
48Afin de le consulter ultérieurement, le texte affiché lors de
49l'installation, celui ci est enregistré dans un fichier appelé
50INSTALL_RECORD qui sera placé dans le répertoire à partir duquel
51vous avez choisi d'installer Greenstone.
52
53Continuer? [y]"
54
55 itext4="
56Dans quel répertoire voulez-vous installer Greenstone?
57Assurez-vous que ce répertoire est sur une partition avec suffisamment
58d'espace disque pour les options que vous avez l'intention de choisir."
59
60 itext5="
61 * Une installation binaire pour Linux nécessite environ 40Mo."
62
63 itext6="
64 * La compilation du code source de Greenstone nécessite environ 155Mo.
65 * L'installation facultative des collections Greenstone de
66 démonstration peut occuper jusqu'à 200Mo de plus (la taille de
67 chaque collection vous sera indiquée avant l'installation).
68 * La documentation en ligne nécessite 4Mo de plus.
69 * L'option permettant à Greenstone d'exporter des collections
70 \"CD exporting\" nécessite 24Mo de plus.
71Entrez le répertoire d'installation de Greenstone. Un répertoire gsdl
72sera créé dans ce répertoire. [${gsdlhome}]"
73
74 itext7="
75Avertissement: Le répertoire ${gsdlhome} n'existe pas.
76Voulez-vous le créer? [y]"
77
78 itext8="ERREUR: la création du répertoire $gsdlhome a échoué"
79
80 itext9="
81Si cette installation échoue ou est annulée, n'oubliez pas d'exécuter
82le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
83l'installation partielle.
84Continuer? [y]"
85
86 itext10="
87Installation de la hiérarchie des répertoires à partir de ${gsdlhome}"
88
89 itext11="
90Souhaitez-vous installer la documentation Greenstone sur votre disque
91dur? La documentation occupe environ 4Mo d'espace disque. Si vous
92n'installez pas la documentation, vous pourrez toujours la consulter à
93partir du répertoire 'docs' du CD-ROM [y]"
94
95 itext12="
96Souhaitez-vous installer la fonctionnalité Greenstone pour exporter?
97Cette fonctionnalité vous permet d'exporter une collection Greenstone
98dans un format adapté pour graver un CD-ROM auto-installable sous
99Windows. Ce module occupe environ 23Mo d'espace disque [n]"
100
101 itext18="Initialisation des permissions ..."
102
103 itext19="
104Afin de permettre la construction de collection par les utilisateurs
105finaux, le programme cgi Greenstone doit pouvoir écrire dans les
106répertoires ${gsdlhome}/collect et ${gsdlhome}/tmp répertoires.
107Sur la plupart des systèmes, cela veut dire que ces répertoires doivent
108permettre l'écriture. Permettre l'écriture dans ces répertoires? [y]"
109
110 itext20="
111Vous pouvez soit installer les fichiers [b]inaires exécutables sous
112Linux (i386 seulement), soit installer et [c]ompiler le code source
113de Greenstone."
114
115 itext21="Entrez \"[b]\" ou \"c\""
116
117 itext22="Installation des fichiers binaires exécutables sous Linux"
118
119 itext23="Installation du code source"
120
121 itext24="configuration ..."
122
123 itext25="compilation ..."
124
125 itext26="installation ..."
126
127 itext27="ERREUR: La compilation a échoué"
128
129 itext28="
130
131Greenstone a besoin d'un répertoire cgi (pour les exécutables) valide
132(normalement appelé cgi-bin sur les systèmes Unix) pour exécuter.
133Ce peut être soit:
134 1. Le répertoire cgi-bin Greenstone par défaut (${gsdlhome}/cgi-bin).
135 Dans ce cas vous devrez configurer votre serveur Web pour considérer
136 ce répertoire comme étant son répertoire cgi pour les fichiers
137 exécutables. Pour Apache, vous pouvez utiliser la directive
138 'ScriptAlias' (les détails concernant la configuration de votre
139 serveur Web seront affichés à la fin de cette procédure
140 d'installation)."
141
142 itext29=" Veuillez noter que vous aurez certainement besoin de l'aide de votre
143 administrateur système pour reconfigurer votre serveur Web."
144
145 itext30=" 2. Un répertoire cgi-bin existant. Normallement un répertoire cgi-bin
146 est créé au moment de l'installation de votre serveur web.
147 Généralement c'est soit /home/httpd/cgi-bin, soit
148 /usr/local/apache/cgi-bin, soit /var/lib/apache/cgi-bin."
149
150 itext31=" De nombreux systèmes permettent aux utilisateurs individuels d'avoir
151 leur propre répertoire cgi-bin in /home/username/public_html/cgi-bin."
152
153 itext32="Entrez \"[1]\" or \"2\""
154
155 itext33="
156N'oubliez pas de configurer votre serveur Web pour considérer
157${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en
158faites pas, vous serez à nouveau prévenu à la fin de cette procédure
159d'installation."
160
161 itext34="
162Entrez le répertoire existant cgi pour les fichiers exécutables
163[/usr/local/apache/cgi-bin]"
164
165 itext35="Avertissement: Le répertoire ${cgi_bin} n'existe pas.
166Voulez-vous le créer? [y]"
167
168 itext36="N'oubliez pas de configurer votre serveur Web pour considérer
169${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en faites
170pas, on vous le rappellera encore une fois à la fin la fin de la procédure
171d'installation."
172
173 itext37="Exécutez le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
174une installation partielle."
175
176 itext38="ERREUR: la création du répertoire $cgi_bin a échoué"
177
178 itext39="
179Impossible d'écrire dans le répertoire $cgi_bin . Vous devrez copier le
180contenu du répertoire ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin une
181fois cette installation terminée. On vous le rappellera encore une fois à
182la fin la fin de la procédure d'installation."
183
184 itext40="
185Installation des programmes cgi Greenstone dans $cgi_bin"
186
187 itext41="
188Veuillez entrer l'adresse Web du répertoire $cgi_bin. En général, c'est
189http://localhost/cgi-bin, ou http://127.0.0.1/cgi-bin, ou
190http://votre-ordinateur-nom/cgi-bin, ou http://nnn.nnn.nnn.nn/cgi-bin.
191[$web_cgi]"
192
193 itext42="
194
195Pour pouvoir exécuter Greenstone, le répertoire $gsdlhome et tout son
196contenu doit être accessible à partir du Web.
197Pour que cela soit possible, vous pouvez soit:
198 1. Configurer le serveur Web pour que le répertoire $gsdlhome soit
199 lui-même accessible à partir du Web."
200
201 itext43=" 2. Indiquer un répertoire Web déjà accessible à partir du Web dans
202 lequel un lien symbolique (ln -s) vers $gsdlhome sera créé.
203 Lorsqu'un serveur Web est installé, un répertoire accessible à partir
204 du web est toujours créé (le serveur Web Apache utilise la directive
205 DocumentRoot pour définir ce répertoire). En général, ce répertoire
206 est appelé /home/httpd/html, ou bien /usr/local/apache/htdocs, ou
207 encore /var/lib/apache/htdocs."
208
209 itext44=" De nombreux systèmes permettent aux utilisateurs individuels
210 d'avoir leur propre répertoire accessible à partir du Web. Ces
211 répertoires sont créés à partir du répertoire
212 /home/username/public_html."
213
214 itext45=" Veuillez noter que le serveur Web devra être configuré pour
215 accepter les liens symboliques à partir de ce répertoire. Pour
216 le serveur Apache cela signifie que ce répertoire doit être
217 configuré avec les options SymLinksIfOwnerMatch et FollowSymLinks
218 (La plupart des installations Apache sont configurées de cette façon
219 par défaut)"
220
221 itext46="
222N'oubliez pas de configurer le serveur Web pour que le répertoire $gsdlhome
223soit accessible à partir du Web. On vous le rappellera encore une fois à la
224fin la fin de la procédure d'installation."
225
226 itext47="Entrez le répertoire qui est accessible à partir du Web [${public_html}]"
227
228 itext48="
229Impossible d'écrire dans le répertoire $public_html. Vous devrez créer un
230lien symbolique appelé gsdl de $public_html vers $gsdlhome après cette
231installation. On vous le rappellera encore une fois à la fin de la
232procédure d'installation."
233
234 itext49="
235Entrez l'adresse Web du répertoire $public_html. Elle peut être un url
236relatif (c.a.d. \"/gsdl\") ou un url complet (c.a.d.
237\"http://${hostname}/gsdl\") [/gsdl]"
238
239 itext50="
240Un mot de passe est nécessaire pour pouvoir utiliser des collections
241construites par des utilisateurs finaux ou pour afficher des pages
242permettant l'administration.
243Un utilisateur ayant pour nom utilisateur \"admin\" sera créé avec le
244mot de passe que vous allez entrer (c.a.d. que pour afficher les pages
245qui nécessite d'authentifier l'utilisateur, vous devrez entrer \"admin\"
246comme nom d'utilisateur et le mot de passe que vous allez donner ici).
247"
248
249 itext51="
250
251L'installation de Greenstone a réussi."
252
253 itext52=" * N'oubliez pas de configurer le serveur Web pour considérer le
254 répertoire $cgi_bin comme étant le répertoire des exécutables cgi."
255
256 itext53=" Pour le serveur Apache, vous devrez ajouter la directive
257 ScriptAlias suivante dans le fichier de configuration httpd.conf"
258
259 itext54=" * N'oubliez pas de déplacer le contenu du répertoire
260 ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin
261"
262
263 itext55=" * N'oubliez pas de configurer le serveur Web pour considérer le
264 répertoire $gsdlhome comme accessible par le Web."
265
266 itext56=" Pour le serveur Apache, vous devrez ajouter au fichier de
267 configuration httpd.conf la directive Alias suivante."
268
269 itext57=" N'oubliez pas de créer un lien symbolique appelé gsdl de $old_ph
270 vers ${gsdlhome}.
271"
272
273 itext58="Les messages affichés lors de l'exécution de ce script ont été enregistré
274dans ${gsdlhome}/INSTALL_RECORD.
275Vous pouvez enlever Greenstone de votre ordinateur à tout moment en
276exécutant le script ${gsdlhome}/Uninstall.sh.
277Utilisez Greenstone en rentrant l'adresse ${web_cgi}/library
278dans votre navigateur.
279"
280
281 itext59="
282Cette installation nécessite l'utilitaire Gnu 'make' qui n'a pu être trouvé
283sur cet ordinateur. Veuillez entrer le chemin d'accès vers Gnu make"
284
285 itextdoccols="
286La collection Greenstone de démonstration a été installée. Souhaitez-vous
287installer d'autres collections à partir du CD-ROM d'installation? [y]"
288
289 itextdec_dls="
290Sous-ensemble de la collection Bibliothèque de Développement (dls-e) - 150MB [y]"
291
292 itextdec_wrdpdf="
293Démonstration MSWord et PDF (wrdpdf-e) - 4MB [y]"
294
295 itextdec_gsarch="
296Collection des Archives de Greenstone (gsarch-e) - 9MB [y]"
297
298 itextdec_cltbib="
299Collection bibliographie (cltbib-e) - 9MB [y]"
300
301 itextdec_cltext="
302Supplément bibliographie (cltext-e) - 1MB [y]"
303
304 itextdec_marc="
305Exemple MARC (MARC-e) - 2MB [y]"
306
307 itextdec_oai="
308Démo OAI (OAI-e) - 19MB [y]"
309
310 itextdec_image="
311Collection d'images simple (image-e) - 1MB [y]"
312
313 itextdec_authen="
314Démonstration de formatage et d'authentification (authen-e) - 12MB [y]"
315
316 itextdec_garish="
317Version Garish de la collection de démonstration (garish) - 12MB [y]"
318
319 itextdec_isis="
320Exemple CDS/ISIS (isis-e) - 2MB [y]"
321
322
323# ------------------------------------------------------------------------------
324# RUSSIAN STRINGS
325# ------------------------------------------------------------------------------
326elif [ "gsdllang" == "r" ] || [ "gsdllang" == "russian" ]; then
327
328 gsdllangcode=ru
329
330 itext0="Greenstone ÎÅ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ"
331
332 itext1="Install.sh ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÚÍÅÝÁÅÔÓÑ"
333
334 itext2="ïûéâëá: îÅ×ÏÚÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÐÏÌÏÖÅÎÉÅ"
335
336 itext3cd="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone × ÷ÁÛÕ ÓÉÓÔÅÍÕ. ðÒÉ ÖÅÌÁÎÉÉ ÷Ù ÍÏÖÅÔÅ
337ÐÒÏÓÍÏÔÒÅÔØ ÄÏËÕÍÅÎÔ Install.pdf, ËÏÔÏÒÙÊ ÒÁÓÐÏÌÏÖÅÎ × ÄÉÒÅËÔÏÒÉÉ docs
338ÎÁ ÄÁÎÎÏÍ CD-ROM, ÄÏ ÐÒÏÄÏÌÖÅÎÉÑ ÉÎÓÔÁÌÌÑÃÉÉ."
339
340 itext3web="-- Missing translation --"
341
342 itext3="
343úÁÍÅÔØÔÅ, ÞÔÏ ËÏÇÄÁ ÐÏÓÔÕÐÁÅÔ ÐÒÉÇÌÁÛÅÎÉÅ ÎÁ ××ÏÄ, ÎÁÖÁÔÉÅ ËÌÁ×ÉÛÉ
344\"enter\" ×ÙÂÉÒÁÅÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÚÁÄÁÎÎÏÅ × Ë×ÁÄÒÁÔÎÙÈ ÓËÏÂËÁÈ [] ×
345ËÏÎÃÅ ËÁÖÄÏÇÏ ×ÏÐÒÏÓÁ. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ËÁËÏÊ ×ÁÒÉÁÎÔ ×ÙÂÒÁÔØ,
346ÉÓÐÏÌØÚÕÊÔÅ ÔÏÔ, ËÏÔÏÒÙÊ ÄÁÎ ÐÏ ÕÍÏÌÞÁÎÉÀ.
347
348úÁÍÅÔØÔÅ ÔÁËÖÅ, ÞÔÏ Install.sh ×ÙÄÁÅÔ ÎÁ ÐÅÞÁÔØ ÉÎÆÏÒÍÁÃÉÀ ÌÀÂÙÈ
349ËÏÍÁÎÄ, ËÏÔÏÒÙÅ ÐÏÓÔÕÐÁÀÔ × ÷ÁÛÕ ÓÉÓÔÅÍÕ × ÆÏÒÍÅ
350\"--> Install.sh: [command]\".
351
352ðÏ×ÓÀÄÕ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÙÐÏÌÎÅÎÎÁÑ ÷ÁÍÉ ÐÒÏÃÅÄÕÒÁ ÉÎÓÔÁÌÌÑÃÉÉ,
353ÕÓÔÁÎÏ×ÉÌÁ ÷ÅÂ-ÓÅÒ×ÅÒ × ÷ÁÛÕ ÓÉÓÔÅÍÕ.
354
355äÌÑ ÐÏÓÌÅÄÕÀÝÉÈ ÓÓÙÌÏË ×ÙÈÏÄ ÄÁÎÎÏÇÏ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÇÏ ÓËÒÉÐÔÁ ÂÕÄÅÔ
356ÚÁÐÉÓÁÎ × ÆÁÊÌÅ, ÎÁÚÙ×ÁÅÍÏÍ INSTALL_RECORD, × ÉÒÅËÔÏÒÉÉ, ËÏÔÏÒÕÀ ÷Ù
357×ÙÂÒÁÌÉ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ Greenstone.
358
359ðÒÏÄÏÌÖÉÔØ? [y]"
360
361 itext4="
362÷ ËÁËÕÀ ÄÉÒÅËÔÏÒÉÀ ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ Greenstone? õÄÏÓÔÏ×ÅÒØÔÅÓØ,
363ÞÔÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ ÎÁÈÏÄÉÔÓÑ ÎÁ ÕÞÁÓÔËÅ Ó ÄÏÓÔÁÔÏÞÎÙÍ Ó×ÏÂÏÄÎÙÍ
364ÐÒÏÓÔÒÁÎÓÔ×ÏÍ ÎÁ ÄÉÓËÅ ÄÌÑ ÉÎÓÔÁÌÑÃÉÏÎÎÙÈ ×ÁÒÉÁÎÔÏ×, ËÏÔÏÒÙÅ ÷Ù
365ÎÁÍÅÒÅ×ÁÅÔÅÓØ ×ÙÂÒÁÔØ."
366
367 itext5="
368 * éÎÓÔÁÌÌÑÃÉÑ ÂÉÎÁÒÎÏÇÏ Linux ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 40 Mb."
369
370 itext6="
371 * ëÏÍÐÉÌÑÃÉÑ Greenstone ÉÚ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ
372 155 Mb.
373 * ðÒÏÉÚ×ÏÌØÎÙÅ ÄÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ËÏÌÌÅËÃÉÉ Greenstone ÍÏÇÕÔ
374 ÉÓÐÏÌØÚÏ×ÁÔØ ÄÏ 200 Mb (÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÚÎÁÔØ ÒÁÚÍÅÒ ËÁÖÄÏÊ
375 ÉÎÄÉ×ÉÄÕÁÌØÎÏÊ ËÏÌÌÅËÃÉÉ ÐÅÒÅÄ ÔÅÍ, ËÁË ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÅÅ).
376 * ïÎÌÁÊÎÏ×ÁÑ ÄÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÄÁÌØÎÅÊÛÉÈ 4 Mb.
377 * æÕÎËÃÉÑ ÄÏÓÔÕÐÎÏÓÔÉ Greenstone \"CD exporting\" ÔÒÅÂÕÅÔ ÅÝÅ 24 Mb.
378÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ × ÎÅÅ Greenstone. äÉÒÅËÔÏÒÉÑ gsdl
379ÂÕÄÅÔ ÓÏÚÄÁÎÁ × ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. [${gsdlhome}]"
380
381 itext7="
382ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: äÉÒÅËÔÏÒÉÑ ${gsdlhome} ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
383óÏÚÄÁÔØ ÅÅ? [y]"
384
385 itext8="ïûéâëá: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $gsdlhome."
386
387 itext9="
388åÓÌÉ ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÂÙÌÁ ÎÅÕÄÁÞÎÏÊ ÉÌÉ ÏÔÍÅÎÅÎÁ, ××ÅÄÉÔÅ
389ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh), ÞÔÏÂÙ ÏÞÉÓÔÉÔØ
390ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ.
391ðÒÏÄÏÌÖÉÔØ? [y]"
392
393 itext10="
394éÎÓÔÁÌÌÑÃÉÑ ÓÔÒÕËÔÕÒÙ ÄÉÒÅËÔÏÒÉÉ Greenstone × ${gsdlhome}"
395
396 itext11="
397èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÄÏËÕÍÅÎÔÁÃÉÀ Greenstone ÎÁ ÷ÁÛ ÖÅÓÔËÉÊ ÄÉÓË?
398äÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 4 Mb ÐÒÏÓÔÒÁÎÓÔ×Á. åÓÌÉ ÷Ù ÎÅ
399ÈÏÔÉÔÅ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÅÅ, Õ ÷ÁÓ ÏÓÔÁÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ
400Ë ÎÅÊ ÉÚ ÄÉÒÅËÔÏÒÉÉ ÄÏËÕÍÅÎÔÏ× CD-ROM) [y]"
401
402 itext12="
403èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÐÏÄÄÅÒÖËÕ ÆÕÎËÃÉÊ Greenstone \"ÜËÓÐÏÒÔ
404ËÏÍÐÁËÔ-ÄÉÓËÁ\"? üÔÁ ÆÕÎËÃÉÑ ÐÏÚ×ÏÌÑÅÔ ÷ÁÍ ÜËÓÐÏÒÔÉÒÏ×ÁÔØ ËÏÌÌÅËÃÉÀ
405Greenstone × ÆÏÒÍÅ, ÐÏÄÈÏÄÑÝÅÊ ÄÌÑ Á×ÔÏÕÓÔÁÎÏ×ËÉ Windows CD-ROM. üÔÏÔ
406ÐÁËÅÔ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 23 íâ ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á [n]"
407
408 itext18="õÓÔÁÎÏ×ËÁ ÒÁÚÒÅÛÅÎÉÊ..."
409
410 itext19="
411äÌÑ ÐÏÓÔÒÏÅÎÉÑ ËÏÌÌÅËÃÉÉ, ÄÏÓÔÕÐÎÏÊ ÄÌÑ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ, cgi
412ÐÒÏÇÒÁÍÍÁ Greenstone ÄÏÌÖÎÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ ×ÐÉÓÁÔØÓÑ × ÄÉÒÅËÔÏÒÉÉ
413${gsdlhome}/collect É ${gsdlhome}/tmp. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÓÉÓÔÅÍ ÜÔÏ
414ÏÚÎÁÞÁÅÔ, ÞÔÏ ÏÎÉ ÄÏÌÖÎÙ ÂÙÔØ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙ. óÄÅÌÁÔØ ÜÔÉ
415ÄÉÒÅËÔÏÒÉÉ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙÍÉ? [y]"
416
417 itext20="
418÷Ù ÍÏÖÅÔÅ ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ ÐÒÅÄËÏÍÐÉÌÉÒÕÅÍÙÅ, ÓÔÁÔÉÞÅÓËÉ Ó×ÑÚÁÎÎÙÅ
419[b] Ä×ÏÉÞÎÙÅ ËÏÄÙ linux (ÔÏÌØËÏ i386) ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ É
420[c] ËÏÍÐÉÌÉÒÏ×ÁÔØ ÉÓÈÏÄÎÕÀ ÐÒÏÇÒÁÍÍÕ Greenstone"
421
422 itext21="÷×ÅÄÉÔÅ \"[b]\" ÉÌÉ \"c\""
423
424 itext22="éÎÓÔÁÌÌÑÃÉÑ Ä×ÏÉÞÎÙÈ ËÏÄÏ× linux"
425
426 itext23="éÎÓÔÁÌÌÑÃÉÑ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ"
427
428 itext24="ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ..."
429
430 itext25="ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ..."
431
432 itext26="éÎÓÔÁÌÑÃÉÑ..."
433
434 itext27="ïûéâëá: ëÏÍÐÉÌÑÃÉÑ ÎÅ ÕÄÁÌÁÓØ"
435
436 itext28="
437
438Greenstone ÎÕÖÎÁ ÐÒÉÇÏÄÎÁÑ ÉÓÐÏÌÎÉÔÅÌØÎÁÑ ÄÉÒÅËÔÏÒÉÑ (× unix ÓÉÓÔÅÍÁÈ
439ÏÂÙÞÎÏ ÎÁÚÙ×ÁÅÍÁÑ cgi-bin), ÉÚ ËÏÔÏÒÏÊ ÏÎ ÚÁÐÕÓËÁÅÔÓÑ.
440üÔÏ ÍÏÖÅÔ ÂÙÔØ ÌÉÂÏ:
441 1. õÓÔÁÎÏ×ËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÉÒÅËÔÏÒÉÉ Greenstone cgi-bin
442 (${gsdlhome}/cgi-bin). åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÐÏ ÕÍÏÌÞÁÎÉÀ Greenstone,
443 ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÓÄÅÌÁÔØ
444 ÜÔÕ ÄÉÒÅËÔÏÒÉÀ ËÁË cgi ÉÓÐÏÌÎÉÍÕÀ. äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÷Ù
445 ÉÓÐÏÌØÚÕÅÔÅ ÄÉÒÅËÔÉ×Õ ScriptAlias, ÞÔÏÂÙ ×ÙÐÏÌÎÉÔØ ÜÔÏ (ÐÏÄÒÏÂÎÏÓÔÉ
446 Ï ÔÏÍ, ËÁË ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ, ÂÕÄÕÔ ÄÁÎÙ × ËÏÎÃÅ ÜÔÏÊ
447 ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ)."
448
449 itext29=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÷Ù ÂÕÄÅÔÅ ×ÅÒÏÑÔÎÏ ÎÕÖÄÁÔØÓÑ × ÐÏÍÏÝÉ
450 ÷ÁÛÅÇÏ ÓÉÓÔÅÍÎÏÇÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ, ÞÔÏÂÙ ÒÅËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ
451 ÷ÅÂ-ÓÅÒ×ÅÒ"
452
453 itext30=" 2. óÕÝÅÓÔ×ÕÀÝÁÑ ÄÉÒÅËÔÏÒÉÑ cgi-bin. ïÂÙÞÎÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ
454 ÓÏÚÄÁÅÔÓÑ ÐÒÉ ÉÎÓÔÁÌÌÑÃÉÉ ×ÁÛÅÇÏ ÷ÅÂ-ÓÅÒ×ÅÒÁ. ëÁË ÐÒÁ×ÉÌÏ, ÜÔÏ ÍÏÖÅÔ
455 ÂÙÔØ /home/httpd/cgi-bin, ÉÌÉ /usr/local/apache/cgi-bin, ÉÌÉ
456 /var/lib/apache/cgi-bin."
457
458 itext31=" íÎÏÇÉÅ ÓÉÓÔÅÍÙ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ
459 ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÙÊ cgi-bin × /home/username/public_html/cgi-bin."
460
461 itext32="÷×ÅÄÉÔÅ \"[1]\" ÉÌÉ \"2\""
462
463 itext33="
464îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÏÂÒÁÔÉÔØ
465${gsdlhome}/cgi-bin × cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ. îÅ ×ÏÌÎÕÊÔÅÓØ, ËÏÇÄÁ
466÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
467
468 itext34="
469÷×ÅÄÉÔÅ ÓÕÝÅÓÔ×ÕÀÝÕÀ cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ [/usr/local/apache/cgi-bin]"
470
471 itext35="ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: ${cgi_bin} ÄÉÒÅËÔÏÒÉÑ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
472óÏÚÄÁÔØ ÅÅ? [y]"
473
474 itext36="îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÞÔÏÂÙ
475ÓÄÅÌÁÔØ $cgi_bin × ËÁÞÅÓÔ×Å cgi ×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÉ. îÅ ×ÏÌÎÕÊÔÅÓØ,
476ÅÓÌÉ × ËÏÎÃÅ ÉÎÓÔÁÌÌÑÃÉÉ ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á."
477
478 itext37="éÓÐÏÌØÚÕÊÔÅ ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh)
479ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÄÁÌÉÔØ ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ."
480
481 itext38="ïûéâëá: ÎÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $cgi_bin"
482
483 itext39="
484îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÓËÏÐÉÒÏ×ÁÔØ
485ÓÏÄÅÒÖÁÎÉÅ ${gsdlhome}/cgi-bin × $cgi_bin ÐÏÓÌÅ ÞÅÇÏ ÉÎÓÔÁÌÌÑÃÉÑ ÂÕÄÅÔ
486ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÉÎÓÔÁÌÑÃÉÏÎÎÏÊ
487ÐÒÏÃÅÄÕÒÙ."
488
489 itext40="
490éÎÓÔÁÌÌÑÃÉÑ cgi-ÐÒÏÇÒÁÍÍÙ Greenstone × $cgi_bin"
491
492 itext41="
493ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÷ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ïÂÙÞÎÏ ÜÔÏ ÍÏÖÅÔ
494ÂÙÔØ http://localhost/cgi-bin, ÉÌÉ http://127.0.0.1/cgi-bin, ÉÌÉ
495http://your-computer-name/cgi-bin ÉÌÉ http://nnn.nnn.nnn.nn/cgi-bin.
496[$web_cgi]."
497
498 itext42="
499
500þÔÏÂÙ Greenstone ÍÏÇ ÂÙÔØ ÚÁÐÕÝÅÎ, ÄÉÒÅËÔÏÒÉÑ $gsdlhome É ×ÓÅ ÅÅ
501ÓÏÄÅÒÖÉÍÏÅ ÄÏÌÖÎÙ ÂÙÔØ ÄÏÓÔÕÐÎÙ ÉÚ ÓÅÔÉ.
502þÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ ÏÓÕÝÅÓÔ×ÉÍÙÍ, ÷Ù ÍÏÖÅÔÅ ÉÌÉ:
503 1. óËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ $gsdlhome Ñ×ÌÑÌÓÑ
504 Á×ÔÏÍÁÔÉÞÅÓËÉ ÄÏÓÔÕÐÎÙÍ ÉÚ ÓÅÔÉ."
505
506 itext43=" 2.ïÂÅÓÐÅÞÉÔØ ÓÕÝÅÓÔ×ÕÀÝÕÀ ÄÏÓÔÕÐÎÕÀ ÄÉÒÅËÔÏÒÉÀ, ÉÚ
507 ËÏÔÏÒÏÊ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ (ln -s) ÂÕÄÅÔ ÓÄÅÌÁÎÁ Ë $gsdlhome.
508 ëÏÇÄÁ ×ÁÛ ÓÅÒ×ÅÒ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ, ÄÉÒÅËÔÏÒÉÑ, ÄÏÓÔÕÐÎÁÑ ÉÚ ÓÅÔÉ,
509 ÂÕÄÅÔ ÓÏÚÄÁÎÁ (÷ÅÂ-ÓÅÒ×ÅÒ Apache ÉÓÐÏÌØÚÕÅÔ ÄÉÒÅËÔÉ×Õ
510 DocumentRoot ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. ïÂÙÞÎÏ ÜÔÏÊ
511 ÄÉÒÅËÔÏÒÉÅÊ ÍÏÇÌÉ ÂÙ ÂÙÔØ /home/httpd/html, ÉÌÉ
512 /usr/local/apache/htdocs, ÉÌÉ /var/lib/apache/htdocs."
513
514 itext44=" íÎÏÇÉÅ ÓÉÓÔÅÍ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ
515 ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÕÀ ÄÏÓÔÕÐÎÕÀ ÉÚ ÓÅÔÉ ÄÉÒÅËÔÏÒÉÀ
516 × /home/username/public_html."
517
518 itext45=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ×ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÂÕÄÅÔ
519 ÄÏÌÖÅÎ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎ ÔÁË, ÞÔÏÂÙ ÐÏÚ×ÏÌÉÔØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ
520 ÉÚÎÕÔÒÉ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. äÌÑ ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ
521 ÄÁÎÎÁÑ ÄÉÒÅËÔÏÒÉÑ ÄÏÌÖÎÁ ÆÏÒÍÉÒÏ×ÁÔØÓÑ Ó ÐÏÍÏÝØÀ
522 SymLinksIfOwnerMatch ÉÌÉ ×ÁÒÉÁÎÔÁ FollowSymLinks (ÂÏÌØÛÉÎÓÔ×Ï
523 ÉÎÓÔÁÌÌÑÃÉÊ Apache ÆÏÒÍÉÒÕÀÔ ÜÔÏÔ ÐÕÔØ ÐÏ ÕÍÏÌÞÁÎÉÀ)."
524
525 itext46="
526îÅ ÚÁÂÕÄØÔÅ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÆÏÒÍÉÒÏ×ÁÔØ
527×ÁÛ webserver, ÞÔÏÂÙ $gsdlhome ÂÙÌ ÄÏÓÔÕÐÅÎ ÉÚ ÓÅÔÉ. ÷ÁÍ ÂÕÄÅÔ
528ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÄÁÎÎÏÊ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÊ ÐÒÏÃÅÄÕÒÙ."
529
530 itext47="÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ, ËÏÔÏÒÁÑ Ñ×ÌÑÅÔÓÑ ÔÁËÖÅ ÄÏÓÔÕÐÎÏÊ ÉÚ ÓÅÔÉ [${public_html}]"
531
532 itext48="
533îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÀ $public_html. ÷ÁÍ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ
534ÓÏÚÄÁÔØ Ó×ÑÚØ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ $public_html Ë $gsdlhome ÐÏÓÌÅ
535ÔÏÇÏ, ËÁË ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ
536ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
537
538 itext49="
539÷×ÅÄÉÔÅ ×ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $public_html. üÔÏ ÍÏÖÅÔ ÂÙÔØ
540ÏÔÎÏÓÉÔÅÌØÎÙÊ URL (ÎÁÐÒÉÍÅÒ, \"/gsdl\") ÉÌÉ ÖÅ ÐÏÌÎÙÊ URL
541(ÎÁÐÒÉÍÅÒ, \"http://${hostname}/gsdl\") [/gsdl]"
542
543 itext50="
544þÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÓÔÒÏÅÎÉÅ ËÏÌÌÅËÃÉÉ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ ÉÌÉ
545ÉÍÅÔØ Õ×ÅÒÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÞÁÓÔÉ ÁÄÍÉÎÉÓÔÒÁÔÉ×ÎÙÈ ÓÔÒÁÎÉÃ, ÷ÁÍ
546ÎÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÐÁÒÏÌØ. ðÏÌØÚÏ×ÁÔÅÌØ Ó ÉÍÅÎÅÍ \"admin\" ÂÕÄÅÔ
547ÓÏÚÄÁÎ ÄÌÑ ÷ÁÓ Ó ÐÁÒÏÌÅÍ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÔÅ (ÔÏ ÅÓÔØ ÄÌÑ ×ÈÏÄÁ
548× ÌÀÂÙÅ ÓÔÒÁÎÉÃÙ, ÔÒÅÂÕÀÝÉÅ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌÑ, ××ÅÄÉÔÅ
549ÉÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ \"admin\" É ÐÁÒÏÌØ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÌÉ).
550"
551
552 itext51="
553
554õÓÔÁÎÏ×ËÁ Greenstone ÚÁËÏÎÞÅÎÁ ÕÓÐÅÛÎÏ."
555
556 itext52=" * îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË,
557 ÞÔÏÂÙ $cgi_bin Ñ×ÌÑÌÁÓØ cgi-×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÅÊ."
558
559 itext53=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
560 ÓÌÅÄÕÀÝÅÊ ÄÉÒÅËÔÉ×Ù ScriptAlias Ë ÷ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ
561 ÆÁÊÌÕ httpd.conf."
562
563 itext54=" * îÅ ÚÁÂÕÄØÔÅ ÐÅÒÅÍÅÓÔÉÔØ ÓÏÄÅÒÖÁÎÉÅ
564 ${gsdlhome}/cgi-bin × $cgi_bin.
565"
566
567 itext55=" * îÅ ÚÁÂÕÄØÔÅ ÔÁË ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ
568 ÔÁË, ÞÔÏÂÙ ÄÉÒÅËÔÏÒÉÑ $gsdlhome ÂÙÌÁ ÄÏÓÔÕÐÎÁ ÉÚ ÓÅÔÉ."
569
570 itext56=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
571 ÄÉÒÅËÔÉ×Ù Alias Ë ×ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ ÆÁÊÌÕ httpd.conf."
572
573 itext57=" * îÅ ÚÁÂÕÄØÔÅ ÓÏÚÄÁÔØ ÓÓÙÌËÕ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ
574 $old_ph Ë ${gsdlhome}.
575"
576
577 itext58="÷ÙÈÏÄ ÜÔÏÇÏ ÓËÒÉÐÔÁ ÂÙÌ ÚÁÐÉÓÁÎ ÄÌÑ ÷ÁÓ ×
578${gsdlhome}/INSTALL_RECORD.
579÷Ù ÍÏÖÅÔÅ ÕÄÁÌÉÔØ Greenstone ÉÚ ÷ÁÛÅÊ ÓÉÓÔÅÍÙ × ÌÀÂÏÅ ×ÒÅÍÑ,
580××ÅÄÑ ÓËÒÉÐÔ ${gsdlhome}/Uninstall.sh.
581äÏÓÔÕÐ Ë Greenstone ÕËÁÚÁÎÉÅÍ ÷ÅÂ-ÂÒÁÕÚÅÒÁ × ${web_cgi}/library.
582"
583
584 itext59="
585üÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÔÒÅÂÕÅÔ GNU, ËÏÔÏÒÙÊ ÎÅ ÂÙÌ ÏÂÎÁÒÕÖÅÎ × ÷ÁÛÅÊ
586ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÐÕÔØ ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ GNU."
587
588 itextdoccols="
589äÅÍÏÎÓÔÒÁÃÉÏÎÎÁÑ ËÏÌÌÅËÃÉÑ Greenstone ÂÙÌÁ ÕÓÔÁÎÏ×ÌÅÎÁ. èÏÔÉÔÅ ÌÉ
590÷Ù ÕÓÔÁÎÏ×ÉÔØ ÌÀÂÙÅ ÄÒÕÇÉÅ ËÏÌÌÅËÃÉÉ ÉÚ ÉÎÓÔÁÌÑÃÉÏÎÎÏÇÏ CD-ROM? [y]"
591
592 itextdec_dls="
593óÕÂËÏÌÌÅËÃÉÑ âÉÂÌÉÏÔÅËÉ ÒÁÚ×ÉÔÉÑ (dls-e) - 150MB [y]"
594
595 itextdec_wrdpdf="
596äÅÍÏÎÓÔÒÁÃÉÑ MSWord É PDF (wrdpdf-e) - 4MB [y]"
597
598 itextdec_gsarch="
599ëÏÌÌÅËÃÉÑ ÁÒÈÉ×Ï× Greenstone (gsarch-e) - 9MB [y]"
600
601 itextdec_cltbib="
602âÉÂÌÉÏÇÒÁÆÉÞÅÓËÁÑ ËÏÌÌÅËÃÉÑ (cltbib-e) - 9MB [y]"
603
604 itextdec_cltext="
605ðÒÉÌÏÖÅÎÉÅ ÂÉÂÌÉÏÇÒÁÆÉÉ (cltext-e) - 1MB [y]"
606
607 itextdec_marc="
608ðÒÉÍÅÒ MARC (MARC-e) - 2MB [y]"
609
610 itextdec_oai="
611äÅÍÏÎÓÔÒÁÃÉ-ÏÎÎÁÑ ËÏÌÌÅËÃÉÑ OAI (OAI-e) - 19MB [y]"
612
613 itextdec_image="
614ðÒÏÓÔÁÑ ËÏÌÌÅËÃÉÑ ÉÚÏÂÒÁÖÅÎÉÊ (image-e) - 1MB [y]"
615
616 itextdec_authen="
617äÅÍÏÎÓÔÒÁÃÉÑ ÆÏÒÍÁÔÉÒÏ×Á-ÎÉÑ É ÁÕÔÅÎÔÉÆÉËÁÃÉÉ (authen-e) - 12MB [y]"
618
619 itextdec_garish="
620òÅÚËÁÑ ×ÅÒÓÉÑ ÄÅÍÏÎÓÔÒÁÃÉÏÎ-ÎÏÊ ËÏÌÌÅËÃÉÉ (garish) - 12MB [y]"
621
622 itextdec_isis="
623ðÒÉÍÅÒ CDS/ISIS (isis-e) - 2MB [y]"
624
625
626# ------------------------------------------------------------------------------
627# SPANISH STRINGS
628# ------------------------------------------------------------------------------
629elif [ "$gsdllang" == "s" ] || [ "$gsdllang" == "spanish" ]; then
630
631 gsdllangcode=es
632
633 itext0="Greenstone no ha sido instalado."
634
635 itext1="Install.sh deberá correrse desde el directorio en el que reside."
636
637 itext2="ERROR: No se pudo localizar "
638
639 itext3cd="Este guión instalará Greenstone en su sistema. Le recomendamos que
640lea el documento install.pdf que reside en el directorio de documentos
641de este CD-ROM antes de continuar con la instalación."
642
643 itext3web="Este programa va a instalar Greenstone en su sistema. Se recomienda
644obtener y revisar la Guía de Instalación de Greenstone (Install.pdf)
645antes de continuar."
646
647 itext3="
648Recuerde que cuando se le pida que ingrese la información, al oprimir
649\"ingresar\" usted seleccionará los ajustes por omisión (que aparecen
650entre corchetes [] al final de cada pregunta). Si no está seguro de
651cuál opción seleccionar utilice los ajustes por omisión.
652
653Recuerde asimismo que Install.sh imprime la información de cualquier
654comando que se ejecute en su sistema en la siguiente forma:
655\"--> Install.sh: [comando]\".
656
657Durante todo el proceso de instalación se asume que usted ya tiene un
658servidor Web instalado en su sistema.
659
660Como referencia para un uso posterior los resultados de este guión de
661instalación se registrarán en un archivo llamado INSTALL_RECORD en el
662directorio en el que usted decidió instalar Greenstone.
663
664¿Desea continuar? [y]"
665
666 itext4="
667¿En qué directorio se instalará Greenstone? Asegúrese de que este
668directorio esté en una partición con suficiente espacio libre en el
669disco para las opciones que usted pretende instalar."
670
671 itext5="
672 * La instalación de un binario Linux requiere aproximadamente 40 MB."
673
674 itext6="
675 * La compilación de Greenstone desde un código fuente requiere
676 aproximadamente 155 MB.
677 * También pueden usarse colecciones muestra opcionales hasta un total
678 de 200 MB (se le indicará el tamaño de cada colección individual
679 antes de instalarla).
680 * La documentación en línea requiere de otros 4 MB.
681 * La función \"exportar a un CD\" de Greenstone requerirá de otros 24 MB.
682Ingrese el directorio para instalar Greenstone. Se creará un directorio
683gsdl en este directorio. [${gsdlhome}]"
684
685 itext7="
686Advertencia: El directorio ${gsdlhome} no existe.
687¿Desea crearlo? [y]"
688
689 itext8="ERROR: no se pudo crear el directorio $gsdlhome."
690
691 itext9="
692Si no se puede realizar la instalación o ésta se cancela, corra el guión
693de desinstalación (${gsdlhome}/Uninstall.sh) para eliminar las partes
694instaladas.
695¿Desea continuar? [y]"
696
697 itext10="
698Instalación de la estructura de directorios Greenstone en ${gsdlhome}"
699
700 itext11="
701¿Le gustaría instalar la documentación de Greenstone en su disco duro?
702Los documentos ocuparán aproximadamente 4 MB de espacio. Si decide no
703instalarlos aún podrá tener acceso a ellos desde el directorio de
704docs del CD-ROM) [y]"
705
706 itext12="
707¿Le gustaría instalar el soporte para la función \"exportar a CD\" de
708Greenstone? Esta función le permite exportar una colección Greenstone
709en una forma que permita escribir en ella a un CD-ROM para Windows que
710se podrá instalar automáticamente. Este paquete utilizará
711aproximadamente 23 MB de espacio en el disco duro [n]"
712
713 itext18="Estableciendo los permisos..."
714
715 itext19="
716Con el fin de que el usuario final pueda crear y construir una
717colección, el programa cgi de Greenstone deberá ser capaz de escribir
718en los directorios ${gsdlhome}/collect y ${gsdlhome}/tmp. En la
719mayoría de los sistemas esto significa que deberá poderse escribir en
720ellos globalmente.
721¿Desea que se pueda escribir en estos directorios globalmente? [y]"
722
723 itext20="
724Usted puede instalar los [b]inarios de Linux vinculados estáticamente
725que se han compilado previamente (únicamente i386) o instalar y
726[c]ompilar el código fuente de Greenstone."
727
728 itext21="Escriba \"[b]\" o \"c\""
729
730 itext22="Instalación de los binarios de Linux"
731
732 itext23="Instalación del código fuente"
733
734 itext24="configurando..."
735
736 itext25="compilando..."
737
738 itext26="instalando..."
739
740 itext27="ERROR: No se pudo compilar."
741
742 itext28="
743
744Greenstone necesita un directorio ejecutable cgi que sea válido
745(normalmente llamado cgi-bin en los sistemas UNIX) desde el cual se
746pueda correr.
747Este puede ser:
748 1. El directorio cgi-bin por omisión de Greenstone
749 (${gsdlhome}/cgi-bin). Si usted utiliza esta opción entonces
750 necesitará configurar su servidor Web para que trate a este
751 directorio como un directorio ejecutable cgi. En el caso del
752 servidor Web Apache se utiliza la directiva ScriptAlias para poder
753 hacer esto (los detalles de la forma de configurar su servidor Web
754 aparecerán al final de este proceso de instalación)."
755
756 itext29=" Recuerde que probablemente necesitará ayuda de su administrador
757 de sistemas para reconfigurar su servidor Web."
758
759 itext30=" 2. Un directorio cgi-bin existente. Normalmente se crea un
760 directorio cgi-bin al momento de instalar su servidor Web. En
761 términos generales este puede ser /home/httpd/cgi-bin,
762 /usr/local/apache/cgi-bin o /var/lib/apache/cgi-bin."
763
764 itext31=" Muchos sistemas también le permiten a sus usuarios tener sus
765 propios directorios individuales cgi-bin en
766 /home/username/public_html/cgi-bin."
767
768 itext32="Escriba \"[1]\" o \"2\""
769
770 itext33="
771No olvide configurar su servidor Web para que trate a ${gsdlhome}/cgi-bin
772como un directorio ejecutable cgi. No se preocupe, esto se le recordará
773nuevamente al final del proceso de instalación."
774
775 itext34="
776Ingrese un directorio ejecutable cgi existente [/usr/local/apache/cgi-bin]"
777
778 itext35="Advertencia: El directorio ${cgi_bin} no existe.
779¿Desea crearlo? [y]"
780
781 itext36="No olvide configurar su servidor Web para que trate a $cgi_bin como
782un directorio ejecutable cgi. No se preocupe, esto se le recordará
783nuevamente al final del proceso de instalación."
784
785 itext37="Corra el guión de desinstalación (${gsdlhome}/Uninstall.sh) para
786eliminar las partes instaladas."
787
788 itext38="ERROR: El directorio $cgi_bin no se pudo crear."
789
790 itext39="
791No se puede escribir en el directorio $cgi_bin. Usted necesitará copiar
792los contenidos de ${gsdlhome}/cgi-bin en $cgi_bin después de que la
793instalación esté completa. Se le recordará esto nuevamente al final del
794proceso de instalación."
795
796 itext40="
797Instalación de los programas cgi de Greenstone en $cgi_bin"
798
799 itext41="
800Por favor ingrese la dirección Web del directorio $cgi_bin. En términos
801generales éste puede ser http://localhost/cgi-bin,
802http://127.0.0.1/cgi-bin, http://your-computer-name/cgi-bin o
803http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
804
805 itext42="
806
807Para que Greenstone pueda funcionar, el directorio $gsdlhome y todos sus
808contenidos deberán ser accesibles desde la Web.
809Para lograr esto usted puede:
810 1. Configurar su servidor Web de tal manera que el mismo $gsdlhome sea
811 accesible desde la Web."
812
813
814 itext43=" 2. Proporcionar un directorio existente que sea accesible desde la
815 Web, a través del cual se creará un vínculo simbólico (ln -s) con
816 $gsdlhome. Cuando instaló su servidor seguramente se creó un
817 directorio accesible desde la Web (el servidor Apache utiliza la
818 directiva DocumentRoot para definir este directorio). En términos
819 generales este directorio podrá ser /home/httpd/html,
820 /usr/local/apache/htdocs o /var/lib/apache/htdocs."
821
822 itext44=" Muchos sistemas también le permiten a los usuarios tener sus
823 propios directorios individuales accesibles desde la Web
824 en /home/username/public_html."
825
826 itext45=" Recuerde que necesitará configurar su servidor Web para permitir
827 la creación de vínculos simbólicos desde el interior de este
828 directorio. En el caso del servidor Apache esto significa que
829 dicho directorio deberá configurarse con la opción
830 SymLinksIfOwnerMatch o FollowSymLinks (la mayoría de las
831 instalaciones Apache se configuran de esta manera por omisión)."
832
833 itext46="
834No olvide configurar su servidor Web para hacer que $gsdlhome sea
835accesible desde la Web. Se le recordará esto nuevamente al final del
836proceso de instalación."
837
838 itext47="Ingrese un directorio que también sea accesible desde la Web [${public_html}]"
839
840 itext48="
841No se puede escribir en el directorio $public_html. Usted necesita
842crear un vínculo llamado gsdl de $public_html a $gsdlhome después de
843terminar la instalación. Se le recordará esto nuevamente al final del
844proceso de instalación."
845
846 itext49="
847Ingrese la dirección Web del directorio $public_html. Ésta puede ser
848un url relativo (p. ej. \"/gsdl\") o un url completo (p. ej.
849\"http://${hostname}/gsdl\") [/gsdl]"
850
851 itext50="
852Con el fin de usar la función que le permite al usuario final crear una
853colección o para tener acceso a ciertas partes de las páginas de
854administración usted deberá contar con una contraseña. Se creará para
855usted un usuario con el nombre \"admin\" y la contraseña que usted
856elija (es decir, para ingresar a las páginas que requieran de
857autenticación de usuario ingrese el nombre del usuario \"admin\" y la
858contraseña que usted haya elegido).
859"
860
861 itext51="
862
863La instalación de Greenstone se realizó con éxito."
864
865 itext52=" * No olvide configurar su servidor Web para que trate a $cgi_bin
866 como un directorio ejecutable cgi."
867
868 itext53=" En el caso del servidor Apache esto significa añadir la siguiente
869 directiva ScriptAlias a su archivo de configuración httpd.conf."
870
871 itext54=" * No olvide mover los contenidos de ${gsdlhome}/cgi-bin a $cgi_bin.
872"
873
874 itext55=" * No olvide configurar su servidor Web para que trate a $gsdlhome
875 como un directorio accesible desde la Web."
876
877 itext56=" En el caso del servidor Apache esto significa añadir la siguiente
878 directiva Alias a su archivo de configuración httpd.conf."
879
880 itext57=" * No olvide crear un vínculo llamado gsdl de $old_ph a ${gsdlhome}.
881"
882
883 itext58="Los resultados de este guión han sido registrados para su uso
884posterior en ${gsdlhome}/INSTALL_RECORD.
885Usted podrá quitar el programa Greenstone de su sistema en cualquier
886momento que lo desee con solo ejecutar el guión
887${gsdlhome}/Uninstall.sh.
888Para tener acceso a Greenstone apunte el navegador hacia
889${web_cgi}/library.
890"
891
892 itext59="Esta instalación requiere una utilería make GNU, el cual podría no
893encontrarse en su sistema. Por favor ingrese la ruta hacia la
894utilería make GNU."
895
896 itextdoccols="
897La colección de muestra Greenstone ha sido instalada. ¿Le gustaría instalar
898alguna otra colección del CD-ROM de instalación? [y]"
899
900 itextdec_dls="
901Subconjunto de la Biblioteca para el Desarrollo (dls-e) - 150MB [y]"
902
903 itextdec_wrdpdf="
904Demostración en MSWord y PDF (wrdpdf-e) - 4MB [y]"
905
906 itextdec_gsarch="
907Colección de Archivos Greenstone (gsarch-e) - 9MB [y]"
908
909 itextdec_cltbib="
910Colección bibliográfica (cltbib-e) - 9MB [y]"
911
912 itextdec_cltext="
913Suplemento bibliográfico (cltext-e) - 1MB [y]"
914
915 itextdec_marc="
916Colección de muestra MARC (MARC-e) - 2MB [y]"
917
918 itextdec_oai="
919Colección de muestra OAI (OAI-e) - 19MB [y]"
920
921 itextdec_image="
922Colección de imágenes sencillas (image-e) - 1MB [y]"
923
924 itextdec_authen="
925Demostración de formateo y autenticación (authen-e) - 12MB [y]"
926
927 itextdec_garish="
928Versión Garish de la colección de muestra (garish) - 12MB [y]"
929
930 itextdec_isis="
931Colección de muestra CDS/ISIS (isis-e) - 2MB [y]"
932
933
934# ------------------------------------------------------------------------------
935# ENGLISH STRINGS
936# ------------------------------------------------------------------------------
937else
938
939 gsdllangcode=en
940
941 itext0="Greenstone was not installed"
942
943 itext1="Install.sh must be run from the directory in which it resides"
944
945 itext2="ERROR: Could not locate "
946
947 itext3cd="This script will install Greenstone on your system. You may want
948to skim through the Install.pdf document that resides in the docs
949directory on this cd-rom before continuing with the installation."
950
951 itext3web="This script will install Greenstone on your system. You may
952want to download and skim through the Greenstone Installer's Guide
953(Install.pdf) before continuing with the installation"
954
955 itext3="
956Note that when prompted for input, hitting \"enter\" will select
957the default (given in square brackets [] at the end of each question).
958If you're unsure which option to select, use the default.
959
960Note also that Install.sh prints out information on any commands
961it runs on your system in the form \"--> Install.sh: [command]\".
962
963It is assumed throughout this installation procedure that you
964have a webserver installed on your system.
965
966For later reference the output of this install script will be
967recorded in a file called INSTALL_RECORD in the directory into
968which you choose to install Greenstone.
969
970Continue? [y]"
971
972 itext4="
973Which directory should Greenstone be installed to?
974Make sure that this directory is on a partition with sufficient
975free disk space for the installation options you intend selecting."
976
977 itext5="
978 * A linux binary installation requires approximately
979 40Mb."
980
981 itext6="
982 * Compiling Greenstone from source code requires
983 approximately 155Mb.
984 * Optional Greenstone demonstration collections may use up
985 to a further 200Mb (you'll be told the size of each individual
986 collection before you install it).
987 * Online documentation requires a further 4Mb.
988 * Enabling Greenstone's \"CD exporting\" function requires a
989 further 24Mb.
990Enter directory to install Greenstone into. A gsdl directory
991will be created in this directory. [${gsdlhome}]"
992
993 itext7="
994Warning: The ${gsdlhome} directory does not exist.
995Create it? [y]"
996
997 itext8="ERROR: failed to create $gsdlhome directory"
998
999 itext9="
1000If this installation fails or is cancelled, run the uninstall
1001script (${gsdlhome}/Uninstall.sh) to clean up the partial
1002installation.
1003Continue? [y]"
1004
1005 itext10="
1006Installing Greenstone directory structure to ${gsdlhome}"
1007
1008 itext11="
1009Would you like to install the Greenstone documentation to your
1010hard drive? The docs will use about 4Mb of space. If you choose
1011not to install them you can still access them from within the
1012docs directory of the cd-rom) [y]"
1013
1014 itext12="
1015Would you like to install support for Greenstone's \"CD exporting\"
1016function? This function allows you to export a Greenstone collection
1017in a form suitable for writing to a self-installing Windows cd-rom.
1018This package will use approximately 23Mb of disk space [n]"
1019
1020 itext18="Setting permissions ..."
1021
1022 itext19="
1023In order for end-user collection building to be enabled the
1024Greenstone cgi program must be able to write to the
1025${gsdlhome}/collect and ${gsdlhome}/tmp directories.
1026On most systems this means they must be globally writable.
1027Make these directories globally writable? [y]"
1028
1029 itext20="
1030You may either install pre-compiled, statically linked linux [b]inaries
1031(i386 only) or install and [c]ompile the Greenstone source code"
1032
1033 itext21="Enter \"[b]\" or \"c\""
1034
1035 itext22="Installing linux binaries"
1036
1037 itext23="Installing source code"
1038
1039 itext24="configuring ..."
1040
1041 itext25="compiling ..."
1042
1043 itext26="installing ..."
1044
1045 itext27="ERROR: Compilation failed"
1046
1047 itext28="
1048
1049Greenstone needs a valid cgi executable directory (normally called
1050cgi-bin on unix systems) from which to run.
1051This may be either:
1052 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin).
1053 If you use the Greenstone default you will need to configure
1054 your webserver to treat this directory as a cgi executable
1055 directory. For the Apache webserver you use the ScriptAlias
1056 directive to do this (details of how to configure your webserver
1057 will be displayed at the end of this installation procedure)."
1058
1059 itext29=" Note that you will probably need help from your system
1060 administrator to reconfigure your webserver."
1061
1062 itext30=" 2. An existing cgi-bin directory. Normally a cgi-bin directory
1063 is created when your webserver is installed. Typically, this
1064 might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or
1065 /var/lib/apache/cgi-bin."
1066
1067 itext31=" Many systems also allow individual users to have their own
1068 cgi-bin in /home/username/public_html/cgi-bin."
1069
1070 itext32="Enter \"[1]\" or \"2\""
1071
1072 itext33="
1073Don't forget to configure your webserver to treat ${gsdlhome}/cgi-bin
1074as a cgi executable directory. Don't worry, you'll be
1075reminded of this again at the end of the installation
1076procedure"
1077
1078 itext34="
1079Enter existing cgi executable directory [/usr/local/apache/cgi-bin]"
1080
1081 itext35="Warning: The ${cgi_bin} directory does not exist.
1082Create it? [y]"
1083
1084 itext36="Don't forget to configure your webserver to treat $cgi_bin
1085as a cgi executable directory. Don't worry, you'll be
1086reminded of this again at the end of the installation
1087procedure"
1088
1089 itext37="Run the uninstall script (${gsdlhome}/Uninstall.sh)
1090to clean up the partial installation."
1091
1092 itext38="ERROR: failed to create $cgi_bin directory"
1093
1094 itext39="
1095Unable to write to $cgi_bin directory. You will need
1096to copy the contents of ${gsdlhome}/cgi-bin
1097to $cgi_bin after this installation is completed.
1098You'll be reminded of this again at the end of the
1099installation procedure."
1100
1101 itext40="
1102Installing Greenstone cgi programs in $cgi_bin"
1103
1104 itext41="
1105Please enter the web address of the $cgi_bin
1106directory. Typically this might be http://localhost/cgi-bin,
1107or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin,
1108or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
1109
1110 itext42="
1111
1112In order for Greenstone to run, the $gsdlhome
1113directory and all it contains must be accessible from the web.
1114To make this happen you may either:
1115 1. Configure your webserver so that $gsdlhome
1116 is itself accessible from the web."
1117
1118 itext43=" 2. Provide an existing web accessible directory from which
1119 a symbolic link (ln -s) will be made to $gsdlhome.
1120 When your server was installed a web accessible directory
1121 will have been created (the Apache webserver uses the
1122 DocumentRoot directive to define this directory). Typically
1123 this directory might be /home/httpd/html, or /usr/local/apache/htdocs,
1124 or /var/lib/apache/htdocs."
1125
1126 itext44=" Many systems also allow individual users to have their own
1127 web accessible directory in /home/username/public_html."
1128
1129 itext45=" Note that your web server will need to be configured to allow
1130 symbolic links from within this directory. For the Apache
1131 server that means this directory must be configured with
1132 the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache
1133 installations are configured this way by default)."
1134
1135 itext46="
1136Don't forget to configure your webserver to make $gsdlhome
1137accessible from the web. You'll be reminded of this again
1138at the end of this installation procedure."
1139
1140 itext47="Enter directory that is also accessible from the web [${public_html}]"
1141
1142 itext48="
1143Unable to write to $public_html directory. You will need
1144to create a link called gsdl from $public_html to
1145$gsdlhome after this installation is completed. You'll be
1146reminded of this again at the end of the installation
1147procedure."
1148
1149 itext49="
1150Enter the web address of the $public_html directory.
1151This may be a relative url (e.g. \"/gsdl\") or a
1152complete url (e.g. \"http://${hostname}/gsdl\") [/gsdl]"
1153
1154 itext50="
1155In order to use end-user collection building or to access certain
1156parts of the administration pages you must have a password.
1157A user with the username \"admin\" will be created for you with
1158the password you provide (i.e. to enter any pages requiring user
1159authentication enter the \"admin\" username and the password you
1160set here).
1161"
1162
1163 itext51="
1164
1165Greenstone installation completed successfully."
1166
1167 itext52=" * Don't forget to configure your webserver to treat
1168 $cgi_bin as a cgi executable directory."
1169
1170 itext53=" For the Apache webserver this means adding the following
1171 ScriptAlias directive to your httpd.conf configuration file."
1172
1173 itext54=" * Don't forget to move the contents of ${gsdlhome}/cgi-bin
1174 to $cgi_bin
1175"
1176
1177 itext55=" * Don't forget to configure your webserver to treat
1178 $gsdlhome as a web accessible directory."
1179
1180 itext56=" For the Apache webserver this means adding the following
1181 Alias directive to your httpd.conf configuration file."
1182
1183 itext57=" * Don't forget to create a link called gsdl from $old_ph
1184 to ${gsdlhome}.
1185"
1186
1187 itext58="The output of this script has been recorded for you at
1188${gsdlhome}/INSTALL_RECORD.
1189You may remove Greenstone from your system at any time by running
1190the ${gsdlhome}/Uninstall.sh script.
1191Access Greenstone by pointing a web browser at
1192${web_cgi}/library
1193"
1194
1195 itext59="
1196This installation requires GNU make which could not be detected
1197on your system. Please enter the path to gnu make"
1198
1199 itextdoccols="
1200The Greenstone demonstration collection has been installed. Would you
1201like to install any other collections from the installation cd-rom? [y]"
1202
1203 itextdec_dls="
1204Development Library Subset collection (dls-e) - 150MB? [y]"
1205
1206 itextdec_wrdpdf="
1207MSWord and PDF demonstration (wrdpdf-e) - 4MB? [y]"
1208
1209 itextdec_gsarch="
1210Greenstone Archives collection (gsarch-e) - 9MB? [y]"
1211
1212 itextdec_cltbib="
1213Bibliography collection (cltbib-e) - 9MB? [y]"
1214
1215 itextdec_cltext="
1216Bibliography supplement (cltext-e) - 1MB? [y]"
1217
1218 itextdec_marc="
1219MARC example (MARC-e) - 2MB? [y]"
1220
1221 itextdec_oai="
1222OAI demo collection (oai-e) - 19MB? [y]"
1223
1224 itextdec_image="
1225Simple image collection (image-e) - 1MB? [y]"
1226
1227 itextdec_authen="
1228Formatting and authentication demo (authen-e) - 12MB? [y]"
1229
1230 itextdec_garish="
1231Garish version of demo collection (garish) - 12MB? [y]"
1232
1233 itextdec_isis="
1234CDS/ISIS example collection (isis-e) - 2MB? [y]"
1235
1236fi
1237
1238
1239# ==============================================================================
1240# INSTALLATION CODE
1241# ==============================================================================
1242
1243cmd_cp="cp"
1244cmd_cpr="cp -r"
1245cmd_chmod="chmod"
1246cmd_mkdir="mkdir -p"
1247cmd_ln="ln -s"
1248cmd_mv="mv"
1249cmd_rm="rm -i"
1250cmd_rmr="rm -r"
1251
1252thisdir=`pwd`
1253cd ..
1254cd_dir=`pwd`
1255cd "$thisdir"
1256
1257
1258# script must be run from within cdrom/unix directory
1259if [ ! -f "${thisdir}/Install.sh" ]; then
1260 echo "$itext1"
1261 echo "$itext0"
1262 exit 1
1263fi
1264
1265# check that various important directories are on the cd
1266if [ ! -d "${cd_dir}/gsdl" ]; then
1267 echo
1268 echo "${itext2}${cd_dir}/gsdl"
1269 echo "$itext0"
1270 exit 1
1271fi
1272if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then
1273 echo
1274 echo "${itext2}${cd_dir}/Unix/bin/linux"
1275 echo "$itext0"
1276 exit 1
1277fi
1278
1279# install to /usr/local by default if user is "root", otherwise
1280# default to users home directory
1281gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1282if [ "$gsdlos" = "linux" ]; then
1283 logname=`whoami`
1284else
1285 logname=""
1286fi
1287if [ "$logname" = "" ]; then
1288 logname=`logname`
1289fi
1290gsdlhome="/home/${logname}"
1291if [ "$logname" = "root" ]; then
1292 gsdlhome="/usr/local"
1293fi
1294
1295installpdf=$itext3cd
1296if [ $iscdrom = "no" ]; then
1297 installpdf=$itext3web
1298fi
1299
1300echo "$installpdf"
1301echo "$itext3"
1302printf "%s" "> "
1303read ans
1304log="${log}${itext3}
1305> $ans
1306"
1307if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1308 echo "$itext0"
1309 exit 0
1310fi
1311
1312# check we've got gnu make (we assume gnu make will always be used on linux)
1313make="make"
1314if [ "$gsdlos" != "linux" ]; then
1315 # if gmake exists, use it
1316 whichgmake=`which gmake 2> /dev/null`
1317 if [ -x "$whichgmake" ]; then
1318 make="gmake"
1319 else
1320 # try plain old "make"
1321 make_ver=`make -v 2> /dev/null | sed -n 's/^GNU.*/GNU/p'`
1322 if [ "$make_ver" != "GNU" ]; then
1323 echo "$itext59"
1324 log="${log}$itext59"
1325 printf "%s" "> "
1326 read ans
1327 make="$ans"
1328 fi
1329 fi
1330fi
1331
1332# get gsdlhome
1333msg="$itext4"
1334if [ "$gsdlos" = "linux" ]; then
1335msg="${msg}$itext5"
1336fi
1337msg="${msg}$itext6"
1338echo "$msg"
1339printf "%s" "> "
1340read ans
1341log="${log}${msg}
1342> $ans
1343"
1344if [ "$ans" != "" ]; then
1345 gsdlhome="$ans"
1346fi
1347
1348if [ ! -d "$gsdlhome" ]; then
1349 echo "$itext7"
1350 printf "%s" "> "
1351 read ans
1352 log="${log}${itext7}
1353> $ans
1354"
1355 if [ "$ans" = "" ]; then
1356 ans="y"
1357 fi
1358 if [ "$ans" = "y" ]; then
1359 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]"
1360 echo "$msg"
1361 log="${log}${msg}
1362"
1363 $cmd_mkdir "$gsdlhome"
1364 if [ ! -d "$gsdlhome" ]; then
1365 echo "$itext8"
1366 echo "$itext0"
1367 exit 1
1368 fi
1369 else
1370 echo "$itext0"
1371 exit 0
1372 fi
1373fi
1374
1375# from now on $gsdlhome includes the "/gsdl"
1376gsdlhome="${gsdlhome}/gsdl"
1377
1378msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]"
1379echo "$msg"
1380log="${log}${msg}
1381"
1382$cmd_mkdir "$gsdlhome"
1383if [ ! -d "$gsdlhome" ]; then
1384 echo "$itext8"
1385 echo "$itext0"
1386 exit 1
1387fi
1388# set permissions on gsdlhome directory
1389msg="--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]"
1390echo "$msg"
1391log="${log}${msg}
1392"
1393$cmd_chmod u+rwx "$gsdlhome"
1394
1395# create initial Uninstall.sh
1396cd "$gsdlhome"
1397echo "#!/bin/sh" > Uninstall.sh
1398echo "" >> Uninstall.sh
1399echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1400echo "read ans" >> Uninstall.sh
1401echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1402echo " $cmd_chmod -R u+rwx \"$gsdlhome\"" >> Uninstall.sh
1403echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1404echo "fi" >> Uninstall.sh
1405$cmd_chmod u+x Uninstall.sh
1406cd "$thisdir"
1407
1408# create initial INSTALL_RECORD
1409echo "$log" >> "${gsdlhome}/INSTALL_RECORD"
1410
1411echo "$itext9"
1412echo "$itext9" >> "${gsdlhome}/INSTALL_RECORD"
1413printf "%s" "> "
1414read ans
1415echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1416if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1417 msg="$itext0"
1418 echo "$msg"
1419 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1420 exit 0
1421fi
1422
1423echo "$itext10"
1424echo "$itext10" >> "${gsdlhome}/INSTALL_RECORD"
1425
1426# copy gsdl directory across
1427msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]"
1428echo "$msg"
1429echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1430$cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome"
1431
1432# copy setup shell scripts across too
1433msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]"
1434echo "$msg"
1435echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1436$cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome"
1437
1438# set the default setup script language to be the installation language
1439sed "s|gsdllang=\"\"|gsdllang=\"${gsdllangcode}\"|" "$gsdlhome/setup.bash" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/setup.bash"
1440sed "s|setenv GSDLLANG .*|setenv GSDLLANG ${gsdllangcode}|" "$gsdlhome/setup.csh" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/setup.csh"
1441$cmd_chmod a+x "${gsdlhome}/setup."*
1442
1443# create a symbolic link "strings.rb" to the appropriate resource bundle
1444cd "$gsdlhome/perllib"
1445$cmd_ln "strings_$gsdllangcode.rb" "strings.rb"
1446cd "$thisdir"
1447
1448# set the GLI script language to be the installation language
1449sed "s|glilang=.*|glilang=$gsdllangcode|" "$gsdlhome/gli/clean.sh" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/gli/clean.sh"
1450sed "s|glilang=.*|glilang=$gsdllangcode|" "$gsdlhome/gli/document.sh" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/gli/document.sh"
1451sed "s|glilang=.*|glilang=$gsdllangcode|" "$gsdlhome/gli/gli.sh" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/gli/gli.sh"
1452sed "s|glilang=.*|glilang=$gsdllangcode|" "$gsdlhome/gli/makegli.sh" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/gli/makegli.sh"
1453$cmd_chmod a+x "${gsdlhome}/gli/"*.sh
1454$cmd_rm -f "${gsdlhome}/gli/"*.bat
1455
1456# set the default GLI interface language to be the installation language
1457sed "s|Argument name=\"general.locale\">.*<|Argument name=\"general.locale\">$gsdllangcode<|" "$gsdlhome/gli/classes/xml/config.xml" > tmp123.txt && $cmd_mv tmp123.txt "$gsdlhome/gli/classes/xml/config.xml"
1458
1459# make sure we have a tmp directory
1460if [ ! -d "$gsdlhome/tmp" ]; then
1461 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]"
1462 echo "$msg"
1463 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1464 $cmd_mkdir "${gsdlhome}/tmp"
1465fi
1466
1467# make collect directory writable so we can install collections
1468msg="--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]"
1469echo "$msg"
1470echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1471$cmd_chmod u+rwx "$gsdlhome/collect"
1472
1473if [ $iscdrom = "yes" ]; then
1474 # do we want docs directory?
1475 echo "$itext11"
1476 echo "$itext11" >> "${gsdlhome}/INSTALL_RECORD"
1477 printf "%s" "> "
1478 read ans
1479 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1480 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1481 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/docs\" \"$gsdlhome\"]"
1482 echo "$msg"
1483 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1484 $cmd_cpr "${cd_dir}/docs" "$gsdlhome"
1485 fi
1486
1487 # do we want the "CD exporting" stuff?
1488 echo "$itext12"
1489 echo "$itext12" >> "${gsdlhome}/INSTALL_RECORD"
1490 printf "%s" "> "
1491 read ans
1492 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1493 if [ "$ans" = "Y" ] || [ "$ans" = "y" ]; then
1494 msg="--> Install.sh: [$cmd_chmod u+rw \"${gsdlhome}/bin\"]"
1495 echo "$msg"
1496 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1497 $cmd_chmod u+rw "${gsdlhome}/bin"
1498
1499 msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]"
1500 echo "$msg"
1501 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1502 $cmd_mkdir "${gsdlhome}/bin/windows"
1503
1504 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/netscape\" \"${gsdlhome}/bin/windows\"]"
1505 echo "$msg"
1506 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1507 $cmd_cpr "${cd_dir}/Windows/bin/windows/netscape" "${gsdlhome}/bin/windows"
1508
1509 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/Win32s\" \"${gsdlhome}/bin/windows\"]"
1510 echo "$msg"
1511 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1512 $cmd_cpr "${cd_dir}/Windows/bin/windows/Win32s" "${gsdlhome}/bin/windows"
1513
1514 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net16\" \"${gsdlhome}/bin/windows\"]"
1515 echo "$msg"
1516 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1517 $cmd_cpr "${cd_dir}/Windows/bin/windows/net16" "${gsdlhome}/bin/windows"
1518
1519 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net32\" \"${gsdlhome}/bin/windows\"]"
1520 echo "$msg"
1521 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1522 $cmd_cpr "${cd_dir}/Windows/bin/windows/net32" "${gsdlhome}/bin/windows"
1523
1524 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/server.exe\" \"${gsdlhome}/bin/windows\"]"
1525 echo "$msg"
1526 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1527 $cmd_cp "${cd_dir}/Windows/bin/windows/server.exe" "${gsdlhome}/bin/windows"
1528
1529 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/gssetup.exe\" \"${gsdlhome}/bin/windows\"]"
1530 echo "$msg"
1531 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1532 $cmd_cp "${cd_dir}/Windows/bin/windows/gssetup.exe" "${gsdlhome}/bin/windows"
1533
1534 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/setpw.exe\" \"${gsdlhome}/bin/windows\"]"
1535 echo "$msg"
1536 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1537 $cmd_cp "${cd_dir}/Windows/bin/windows/setpw.exe" "${gsdlhome}/bin/windows"
1538
1539 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/Setup.exe\" \"${gsdlhome}/bin/windows\"]"
1540 echo "$msg"
1541 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1542 $cmd_cp "${cd_dir}/Windows/bin/windows/Setup.exe" "${gsdlhome}/bin/windows"
1543 fi
1544
1545
1546 # which collections do we want
1547 cd "${cd_dir}/collect"
1548 echo "$itextdoccols"
1549 echo "$itextdoccols" >> "${gsdlhome}/INSTALL_RECORD"
1550 printf "%s" "> "
1551 read ans
1552 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1553 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1554
1555 # dls-e
1556 echo "$itextdec_dls"
1557 echo "$itextdec_dls" >> "${gsdlhome}/INSTALL_RECORD"
1558 printf "%s" "> "
1559 read ans
1560 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1561 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1562
1563 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/dls-e\" \"${gsdlhome}/collect\"]"
1564 echo "$msg"
1565 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1566 $cmd_cpr "${cd_dir}/collect/dls-e" "${gsdlhome}/collect"
1567 fi
1568
1569 # wrdpdf-e
1570 echo "$itextdec_wrdpdf"
1571 echo "$itextdec_wrdpdf" >> "${gsdlhome}/INSTALL_RECORD"
1572 printf "%s" "> "
1573 read ans
1574 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1575 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1576
1577 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wrdpdf-e\" \"${gsdlhome}/collect\"]"
1578 echo "$msg"
1579 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1580 $cmd_cpr "${cd_dir}/collect/wrdpdf-e" "${gsdlhome}/collect"
1581 fi
1582
1583 # gsarch-e
1584 echo "$itextdec_gsarch"
1585 echo "$itextdec_gsarch" >> "${gsdlhome}/INSTALL_RECORD"
1586 printf "%s" "> "
1587 read ans
1588 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1589 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1590
1591 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch-e\" \"${gsdlhome}/collect\"]"
1592 echo "$msg"
1593 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1594 $cmd_cpr "${cd_dir}/collect/gsarch-e" "${gsdlhome}/collect"
1595 fi
1596
1597 # cltbib-e
1598 echo "$itextdec_cltbib"
1599 echo "$itextdec_cltbib" >> "${gsdlhome}/INSTALL_RECORD"
1600 printf "%s" "> "
1601 read ans
1602 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1603 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1604
1605 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltbib-e\" \"${gsdlhome}/collect\"]"
1606 echo "$msg"
1607 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1608 $cmd_cpr "${cd_dir}/collect/cltbib-e" "${gsdlhome}/collect"
1609 fi
1610
1611 # cltext-e
1612 echo "$itextdec_cltext"
1613 echo "$itextdec_cltext" >> "${gsdlhome}/INSTALL_RECORD"
1614 printf "%s" "> "
1615 read ans
1616 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1617 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1618
1619 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltext-e\" \"${gsdlhome}/collect\"]"
1620 echo "$msg"
1621 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1622 $cmd_cpr "${cd_dir}/collect/cltext-e" "${gsdlhome}/collect"
1623 fi
1624
1625 # MARC-e
1626 echo "$itextdec_marc"
1627 echo "$itextdec_marc" >> "${gsdlhome}/INSTALL_RECORD"
1628 printf "%s" "> "
1629 read ans
1630 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1631 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1632
1633 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/MARC-e\" \"${gsdlhome}/collect\"]"
1634 echo "$msg"
1635 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1636 $cmd_cpr "${cd_dir}/collect/MARC-e" "${gsdlhome}/collect"
1637 fi
1638
1639 # oai-e
1640 echo "$itextdec_oai"
1641 echo "$itextdec_oai" >> "${gsdlhome}/INSTALL_RECORD"
1642 printf "%s" "> "
1643 read ans
1644 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1645 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1646
1647 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/oai-e\" \"${gsdlhome}/collect\"]"
1648 echo "$msg"
1649 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1650 $cmd_cpr "${cd_dir}/collect/oai-e" "${gsdlhome}/collect"
1651 fi
1652
1653 # image-e
1654 echo "$itextdec_image"
1655 echo "$itextdec_image" >> "${gsdlhome}/INSTALL_RECORD"
1656 printf "%s" "> "
1657 read ans
1658 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1659 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1660
1661 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/image-e\" \"${gsdlhome}/collect\"]"
1662 echo "$msg"
1663 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1664 $cmd_cpr "${cd_dir}/collect/image-e" "${gsdlhome}/collect"
1665 fi
1666
1667 # authen-e
1668 echo "$itextdec_authen"
1669 echo "$itextdec_authen" >> "${gsdlhome}/INSTALL_RECORD"
1670 printf "%s" "> "
1671 read ans
1672 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1673 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1674
1675 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/authen-e\" \"${gsdlhome}/collect\"]"
1676 echo "$msg"
1677 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1678 $cmd_cpr "${cd_dir}/collect/authen-e" "${gsdlhome}/collect"
1679 fi
1680
1681 # garish-e
1682 echo "$itextdec_garish"
1683 echo "$itextdec_garish" >> "${gsdlhome}/INSTALL_RECORD"
1684 printf "%s" "> "
1685 read ans
1686 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1687 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1688
1689 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/garish\" \"${gsdlhome}/collect\"]"
1690 echo "$msg"
1691 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1692 $cmd_cpr "${cd_dir}/collect/garish" "${gsdlhome}/collect"
1693 fi
1694
1695 # isis-e
1696 echo "$itextdec_isis"
1697 echo "$itextdec_isis" >> "${gsdlhome}/INSTALL_RECORD"
1698 printf "%s" "> "
1699 read ans
1700 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1701 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1702
1703 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/isis-e\" \"${gsdlhome}/collect\"]"
1704 echo "$msg"
1705 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1706 $cmd_cpr "${cd_dir}/collect/isis-e" "${gsdlhome}/collect"
1707 fi
1708 fi
1709fi
1710
1711# set permissions
1712msg="
1713$itext18
1714--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]
1715--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/script/\"*]"
1716echo "$msg"
1717echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1718$cmd_chmod -R u+rw "$gsdlhome"
1719$cmd_chmod a+x "${gsdlhome}/bin/script/"*
1720
1721# certain files in gsdl/etc need to be globally writable
1722msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/error.txt\"]"
1723echo "$msg"
1724echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1725$cmd_chmod a+w "$gsdlhome/etc/error.txt"
1726msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/key.db\"]"
1727echo "$msg"
1728echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1729$cmd_chmod a+w "$gsdlhome/etc/key.db"
1730msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/users.db\"]"
1731echo "$msg"
1732echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1733$cmd_chmod a+w "$gsdlhome/etc/users.db"
1734msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/main.cfg\"]"
1735echo "$msg"
1736echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1737$cmd_chmod a+w "$gsdlhome/etc/main.cfg"
1738msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/history.db\"]"
1739echo "$msg"
1740echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1741$cmd_chmod a+w "$gsdlhome/etc/history.db"
1742msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/usage.txt\"]"
1743echo "$msg"
1744echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1745$cmd_chmod a+w "$gsdlhome/etc/usage.txt"
1746
1747
1748# should gsdl/collect and gsdl/tmp be globally writable?
1749echo "$itext19"
1750echo "$itext19" >> "${gsdlhome}/INSTALL_RECORD"
1751printf "%s" "> "
1752read ans
1753echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1754if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1755 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]"
1756 echo "$msg"
1757 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1758 $cmd_chmod -R a+w "$gsdlhome/collect"
1759 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/tmp\"]"
1760 echo "$msg"
1761 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1762 $cmd_chmod -R a+w "$gsdlhome/tmp"
1763fi
1764
1765# binaries or source code?
1766compile="yes"
1767if [ "$gsdlos" = "linux" ]; then
1768 echo "$itext20"
1769 echo "$itext20" >> "${gsdlhome}/INSTALL_RECORD"
1770
1771 found=no
1772 while [ "$found" = "no" ]; do
1773 echo "$itext21"
1774 echo "$itext21" >> "${gsdlhome}/INSTALL_RECORD"
1775 printf "%s" "> "
1776 read ans
1777 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1778 if [ "$ans" = "" ] || [ "$ans" = "b" ]; then
1779 compile="no"
1780 # install binaries
1781 msg="
1782$itext22
1783--> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\"]"
1784 echo "$msg"
1785 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1786 $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin"
1787 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]"
1788 echo "$msg"
1789 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1790 $cmd_chmod a+x "${gsdlhome}/bin/linux/"*
1791 msg="--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]"
1792 echo "$msg"
1793 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1794 $cmd_chmod -R u+rw "${gsdlhome}/bin/linux"
1795
1796 # move library executable to cgi-bin
1797 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]"
1798 echo "$msg"
1799 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1800 $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin"
1801
1802 # move XML.tgz to perllib/cpan and untar it (if we're using perl 5.8 or
1803 # greater we use a different tgz package since modules compiled for older
1804 # perls aren't binary compatible with newer ones)
1805 xml_tgz="XML.tgz"
1806 perl_version_major=`perl -v | sed -n 's/.*v\([0-9]*\).*/\1/p'`
1807 perl_version_minor=`perl -v | sed -n 's/.*v[0-9]*\.\([0-9]*\).*/\1/p'`
1808 if [ $perl_version_major -ge 5 ] && [ $perl_version_minor -ge 8 ]; then
1809 xml_tgz="XML-5.8.tgz"
1810 fi
1811 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/${xml_tgz}\" \"${gsdlhome}/perllib/cpan\"]"
1812 echo "$msg"
1813 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1814 $cmd_mv "${gsdlhome}/bin/linux/${xml_tgz}" "${gsdlhome}/perllib/cpan"
1815 cd "${gsdlhome}/perllib/cpan"
1816 msg="--> Install.sh: [gzip -dc $xml_tgz | tar -xf -]"
1817 echo "$msg"
1818 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1819 gzip -dc $xml_tgz | tar -xf -
1820
1821 found="yes"
1822 elif [ "$ans" = "c" ]; then
1823 found="yes"
1824 fi
1825 done
1826fi
1827
1828if [ "$compile" = "yes" ]; then
1829 # install source
1830 msg="
1831$itext23
1832--> Install.sh: [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]"
1833 echo "$msg"
1834 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1835 $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome"
1836 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]"
1837 echo "$msg"
1838 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1839 $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome"
1840 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]"
1841 echo "$msg"
1842 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1843 $cmd_cpr "${cd_dir}/src/src" "$gsdlhome"
1844 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]"
1845 echo "$msg"
1846 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1847 $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome"
1848 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Install.txt\" \"$gsdlhome\"]"
1849 echo "$msg"
1850 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1851 $cmd_cp "${cd_dir}/src/Install.txt" "$gsdlhome"
1852 msg="--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
1853 echo "$msg"
1854 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1855 $cmd_chmod -R u+rw "$gsdlhome"
1856 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]"
1857 echo "$msg"
1858 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1859 $cmd_chmod a+x "${gsdlhome}/configure"
1860 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/packages/yaz/configure\"]"
1861 echo "$msg"
1862 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1863 $cmd_chmod a+x "${gsdlhome}/packages/yaz/configure"
1864
1865 # compile it
1866 msg="--> Install.sh: [cd $gsdlhome]"
1867 echo "$msg"
1868 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1869 cd "$gsdlhome"
1870 msg="$itext24
1871
1872--> Install.sh: [./configure]"
1873 echo "$msg"
1874 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1875 ./configure
1876 msg="$itext25
1877
1878--> Install.sh: [make]"
1879 echo "$msg"
1880 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1881 $make
1882 msg="$itext26
1883
1884--> Install.sh: [make install]"
1885 echo "$msg"
1886 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1887 $make install
1888 msg="--> Install.sh: [cd $thisdir]"
1889 echo "$msg"
1890 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1891 cd "$thisdir"
1892
1893 # check that things compiled ok
1894 if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then
1895 msg="$itext27
1896$itext0
1897$itext37"
1898 echo "$msg"
1899 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1900 exit 1
1901 fi
1902fi
1903
1904
1905# try to find out hostname
1906if [ "$gsdlos" = "linux" ]; then
1907 hostname=`hostname -f`
1908 if [ "$hostname" = "" ]; then
1909 hostname=`hostname -i`
1910 fi
1911fi
1912if [ "$hostname" = "" ]; then
1913 hostname=`hostname`
1914fi
1915if [ "$hostname" = "" ]; then
1916 hostname="your-computer-name"
1917fi
1918
1919
1920# get cgi-bin directory
1921echo "$itext28"
1922echo "$itext28" >> "${gsdlhome}/INSTALL_RECORD"
1923if [ "$logname" != "root" ]; then
1924 echo "$itext29"
1925 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
1926fi
1927echo "$itext30"
1928echo "$itext30" >> "${gsdlhome}/INSTALL_RECORD"
1929if [ "$logname" != "root" ]; then
1930 echo "$itext31"
1931 echo "$itext31" >> "${gsdlhome}/INSTALL_RECORD"
1932fi
1933found=no
1934remind_cgi="no"
1935remind_cgi_nomove="no"
1936while [ "$found" = "no" ]; do
1937 echo "$itext32"
1938 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
1939 printf "%s" "> "
1940 read ans
1941 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1942 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
1943 found="option1"
1944 cgi_bin="${gsdlhome}/cgi-bin"
1945 # default gsdl cgi-bin, do nothing
1946
1947 echo "$itext33"
1948 echo "$itext33" >> "${gsdlhome}/INSTALL_RECORD"
1949 remind_cgi="yes"
1950 elif [ "$ans" = "2" ]; then
1951 found="option2"
1952 # external cgi-bin
1953
1954 echo "$itext34"
1955 echo "$itext34" >> "${gsdlhome}/INSTALL_RECORD"
1956 printf "%s" "> "
1957 read ans
1958 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1959 if [ "$ans" = "" ]; then
1960 cgi_bin="/usr/local/apache/cgi-bin"
1961 else
1962 cgi_bin="$ans"
1963 fi
1964
1965 if [ ! -d "$cgi_bin" ]; then
1966
1967 echo "$itext35"
1968 echo "$itext35" >> "${gsdlhome}/INSTALL_RECORD"
1969 printf "%s" "> "
1970 read ans
1971 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1972 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1973 msg="--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]"
1974 echo "$msg"
1975 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1976 $cmd_mkdir "$cgi_bin"
1977 if [ -d "$cgi_bin" ]; then
1978 echo "$itext36"
1979 echo "$itext36" >> "${gsdlhome}/INSTALL_RECORD"
1980 remind_cgi="yes"
1981 else
1982 msg="$itext38
1983$itext0
1984$itext37"
1985 echo "$msg"
1986 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1987 exit 1
1988 fi
1989 fi
1990 fi
1991
1992 if [ ! -w "$cgi_bin" ]; then
1993 echo "$itext39"
1994 echo "$itext39" >> "${gsdlhome}/INSTALL_RECORD"
1995 remind_cgi_nomove="yes"
1996 else
1997 # install cgi-bin stuff (update the uninstall script first)
1998 cd "$gsdlhome"
1999 echo "#!/bin/sh" > Uninstall.sh
2000 echo "" >> Uninstall.sh
2001 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
2002 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
2003 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
2004 echo "read ans" >> Uninstall.sh
2005 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
2006 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
2007 echo "fi" >> Uninstall.sh
2008 $cmd_chmod u+x Uninstall.sh
2009 cd "$thisdir"
2010
2011 msg="$itext40
2012--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]"
2013 echo "$msg"
2014 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2015 $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin"
2016 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]"
2017 echo "$msg"
2018 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2019 $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin"
2020 fi
2021 fi
2022done
2023
2024# web address of cgi-bin
2025web_cgi="http://${hostname}/cgi-bin"
2026if [ "$found" = "option1" ]; then
2027 web_cgi="http://${hostname}/gsdl/cgi-bin"
2028fi
2029
2030echo "$itext41"
2031echo "$itext41" >> "${gsdlhome}/INSTALL_RECORD"
2032printf "%s" "> "
2033read ans
2034echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2035if [ "$ans" != "" ]; then
2036 web_cgi="$ans"
2037fi
2038
2039# get public_html directory
2040echo "$itext42"
2041echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2042if [ "$logname" != "root" ]; then
2043 echo "$itext29"
2044 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
2045fi
2046echo "$itext43"
2047echo "$itext43" >> "${gsdlhome}/INSTALL_RECORD"
2048if [ "$logname" != "root" ]; then
2049 echo "$itext44"
2050 echo "$itext44" >> "${gsdlhome}/INSTALL_RECORD"
2051fi
2052echo "$itext45"
2053echo "$itext45" >> "${gsdlhome}/INSTALL_RECORD"
2054found="no"
2055remind_ph="no"
2056remind_ph_nolink="no"
2057while [ "$found" = "no" ]; do
2058 echo "$itext32"
2059 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
2060 printf "%s" "> "
2061 read ans
2062 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2063 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
2064 found="yes"
2065 public_html="$gsdlhome"
2066 # no link
2067 echo "$itext46"
2068 echo "$itext46" >> "${gsdlhome}/INSTALL_RECORD"
2069 remind_ph="yes"
2070 elif [ "$ans" = "2" ]; then
2071 found="yes"
2072 # external public_html
2073 echo
2074 public_html="/home/${logname}/public_html"
2075 if [ "$logname" = "root" ]; then
2076 public_html="/usr/local/apache/htdocs"
2077 fi
2078
2079 echo "$itext47"
2080 echo "$itext47" >> "${gsdlhome}/INSTALL_RECORD"
2081 printf "%s" "> "
2082 read ans
2083 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2084 if [ "$ans" != "" ]; then
2085 public_html="$ans"
2086 fi
2087
2088 # create link to gsdl (and update Uninstall.sh)
2089 if [ -w "$public_html" ]; then
2090 cd "$gsdlhome"
2091 echo "#!/bin/sh" > Uninstall.sh
2092 echo "" >> Uninstall.sh
2093 echo "$cmd_rm \"$public_html/gsdl\"" >> Uninstall.sh
2094 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
2095 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
2096 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
2097 echo "read ans" >> Uninstall.sh
2098 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
2099 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
2100 echo "fi" >> Uninstall.sh
2101 $cmd_chmod u+x Uninstall.sh
2102 cd "$thisdir"
2103
2104 msg="--> Install.sh: [cd \"$public_html\"]"
2105 echo "$msg"
2106 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2107 cd "$public_html"
2108 msg="--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]"
2109 echo "$msg"
2110 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2111 $cmd_ln "$gsdlhome" gsdl
2112 msg="--> Install.sh: [cd \"$thisdir\"]"
2113 echo "$msg"
2114 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2115 cd "$thisdir"
2116 else
2117 echo "$itext48"
2118 echo "$itext48" >> "${gsdlhome}/INSTALL_RECORD"
2119 old_ph=$public_html
2120 remind_ph_nolink="yes"
2121 fi
2122 public_html="${public_html}/gsdl"
2123 fi
2124done
2125
2126# get httpprefix
2127echo "$itext49"
2128echo "$itext49" >> "${gsdlhome}/INSTALL_RECORD"
2129printf "%s" ">"
2130httpprefix="/gsdl"
2131read ans
2132echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2133if [ "$ans" != "" ]; then
2134 httpprefix="$ans"
2135fi
2136
2137# get initial password
2138echo "$itext50"
2139echo "$itext50" >> "${gsdlhome}/INSTALL_RECORD"
2140pw=`"${gsdlhome}/bin/${gsdlos}/getpw"`
2141tmp="[admin]
2142<comment>
2143<enabled>true
2144<groups>administrator,colbuilder
2145<password>${pw}
2146<username>admin
2147----------------------------------------------------------------------"
2148echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db"
2149$cmd_chmod a+rw "${gsdlhome}/etc/users.db"
2150
2151# add the dummy "demo" user with "demo" password for the authen-e collection
2152echo "About to add demo user..."
2153cat ${gsdlhome}/etc/demouser.txt | ${gsdlhome}/bin/${gsdlos}/txt2db -append "${gsdlhome}/etc/users.db"
2154$cmd_chmod a+rw "${gsdlhome}/etc/users.db"
2155
2156# edit gsdlsite.cfg
2157cd "$cgi_bin"
2158sed "s|\(gsdlhome *\)[^ ]*|\1\"${gsdlhome}\"|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2159sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2160sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2161
2162# success
2163echo "$itext51"
2164echo "$itext51" >> "${gsdlhome}/INSTALL_RECORD"
2165if [ "$remind_cgi" = "yes" ]; then
2166 echo "$itext52"
2167 echo "$itext52" >> "${gsdlhome}/INSTALL_RECORD"
2168
2169 apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2170 cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"`
2171 cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"`
2172
2173 msg="$itext53
2174
2175 ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\"
2176 <Directory \"${cgi_bin_noslash}\">
2177 AllowOverride None
2178 Options None
2179 Order allow,deny
2180 Allow from all
2181 </Directory>
2182"
2183 echo "$msg"
2184 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2185fi
2186if [ "$remind_cgi_nomove" = "yes" ]; then
2187 echo "$itext54"
2188 echo "$itext54" >> "${gsdlhome}/INSTALL_RECORD"
2189fi
2190if [ "$remind_ph" = "yes" ]; then
2191 echo "$itext55"
2192 echo "$itext55" >> "${gsdlhome}/INSTALL_RECORD"
2193
2194 apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2195 public_html_slash=`echo "$public_html" | sed "s|/*$|/|"`
2196 public_html_noslash=`echo "$public_html" | sed "s|/*$||"`
2197
2198 msg="$itext56
2199
2200 Alias ${apache_httpprefix} \"${public_html_slash}\"
2201 <Directory \"${public_html_noslash}\">
2202 Options Indexes MultiViews FollowSymLinks
2203 AllowOverride None
2204 Order allow,deny
2205 Allow from all
2206 </Directory>
2207"
2208 echo "$msg"
2209 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2210fi
2211if [ "$remind_ph_nolink" = "yes" ]; then
2212 echo "$itext57"
2213 echo "$itext57" >> "${gsdlhome}/INSTALL_RECORD"
2214fi
2215echo "$itext58"
2216echo "$itext58" >> "${gsdlhome}/INSTALL_RECORD"
2217
2218exit 0
Note: See TracBrowser for help on using the repository browser.