source: trunk/gsdl/Install.sh@ 7072

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

Filled in the last hole in the Russian strings (thanks Annika and friend!).

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