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