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