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