source: trunk/gsdl/Install.sh@ 7075

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

A couple of improvements to the French string recently added.

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