Commit 6401c2908ec21c76a06cc31005aae89e70f711d9
1 parent
4e935869
Exists in
master
Correções pontuais! By Questor
Showing
3 changed files
with
103 additions
and
139 deletions
Show diff stats
.directory
README.md
| ... | ... | @@ -1,44 +0,0 @@ |
| 1 | -Instalador LBG - LBGenerator | |
| 2 | -============= | |
| 3 | - | |
| 4 | -Instalador do LBG - LBGenerator o criador e gerenciador do modelo e especificação de dados do LightBase! Este é o componente principal da especificação LightBase sendo aderente ao modelo HTTP/REST funcionando como um webservice. Os dados são autocontidos, monolíticos e formatados em JSON (JavaScript Object Notation). | |
| 5 | - | |
| 6 | -Instruções: | |
| 7 | ------ | |
| 8 | - | |
| 9 | -Baixe usando o comando... | |
| 10 | - | |
| 11 | -``` | |
| 12 | -git clone git@softwarepublico.gov.br:lightbase/lbginst.git | |
| 13 | -``` | |
| 14 | - | |
| 15 | -Na pasta principal do projeto instale usando o comando... | |
| 16 | - | |
| 17 | -``` | |
| 18 | -bash install.sh | |
| 19 | -``` | |
| 20 | - | |
| 21 | -O instalador é muito simples, dedutível e todo auto-explicativo. Se o objetivo da instalação é conhecer/testar a plataforma recomendados usar todos os valores padrão sugeridos e responder sim ("y") à tudo! | |
| 22 | - | |
| 23 | -**PLATAFORMAS:** Compatível com RedHat (RHEL) 6.X (ou baseado/CentOS 6.X), Debian 8 (ou baseado/Ubuntu Server 14.X) e SUSE Enterprise (SLES) 12.X (ou baseado/openSUSE 13.X)! | |
| 24 | - | |
| 25 | -LightBase - Direto à informação! | |
| 26 | -============= | |
| 27 | - | |
| 28 | -O que é o LightBase? | |
| 29 | ------ | |
| 30 | - | |
| 31 | -O LightBase começou a ser desenvolvido na década de 80 no Brasil sendo pioneiro no modelo documental, possui características únicas não sendo igualado por nenhum software nacional ou estrangeiro. | |
| 32 | - | |
| 33 | -O LightBase foi totalmente reformulado pela BRLight tendo como base a expertise de seus fundadores adquirida em mais de 30 anos de vivência em tecnologia. Essa nova versão foi chamada de LightBaseNeo e traz todas as boas qualidade das versões anteriores, mais paralelização de processamento das informações, paralelização de indexação, paralelização de conteúdo e outros processos e funcionalidades inéditas que visam melhorar a sua performance, manutenção e usabilidade. Essa nova versão está pronta para comportar novos tipos de indexação como fuzzy, web semântica, relacional entre outras sendo bastante dimensionável. | |
| 34 | - | |
| 35 | -O LightBaseNeo é um banco de dados textual, de modelo documental mas que também guarda os dados de forma relacional e visa em seu âmago a recuperação ágil e fácil de conteúdo, inclusive textos de arquivos (OCR). Possui dados auto contidos o que torna fácil de estender e manter. O LightBaseNeo possui módulos separados para indexação, para persistência, para recuperação de conteúdo e todos os seus componentes são baseados em tecnologias livres. | |
| 36 | - | |
| 37 | - Sendo um banco de dados simples, intuitivo, e fácil de aprender e sua meta é ser acessível para o usuário final, uma vez que seu modelo de composição e sua forma de operar é extremamente simples. Não possui relacionamentos, embora se o desenvolvedor desejar, também poderá utilizar o modelo relacional, isso porque o novo LightBase também é aderente a esse modelo. O LightBaseNeo permite guardar grande quantidade de informação e encontrá-la de forma simples, direta e objetiva. Possui tecnologia livre e nacional sendo um projeto grande e ambicioso, mas que sempre almejou a simplicidade. É um software público que pertence a cada cidadão brasileiro, que pode ser usado de forma irrestrita para tratar das necessidades mais simples às mais complexas. | |
| 38 | - | |
| 39 | -Contato | |
| 40 | ------ | |
| 41 | - | |
| 42 | -BR Light LTDA - LightBase Consulting in Public Software/LightBase Consultoria em Software Público | |
| 43 | -Free Software + Our Ideas = Best Solution!/Software Livre + Nossas Idéias = Melhor Solução! | |
| 44 | -+55-61-3347-1949 - http://www.LightBase.com.br - Brazil-DF |
install.sh
| ... | ... | @@ -48,8 +48,8 @@ based on these. |
| 48 | 48 | |
| 49 | 49 | - We NOTICE you... |
| 50 | 50 | This installer assumes that the target distribution has a "standard |
| 51 | - setup". This may include components such as firewall, SELinux | |
| 52 | - and others. | |
| 51 | + setup". This may include components such as firewall, SELinux | |
| 52 | + and others. | |
| 53 | 53 | |
| 54 | 54 | - We WARNING you... |
| 55 | 55 | THIS INSTALLER AND RESULTING PRODUCTS COMES WITH ABSOLUTELY NO WARRANTY! |
| ... | ... | @@ -385,106 +385,103 @@ f_common_packs() { |
| 385 | 385 | : 'Instalar pacotes que são comuns a determinados componentes.' |
| 386 | 386 | |
| 387 | 387 | if [ ${F_COM_PKS_INSTALLED} -eq 0 ] ; then |
| 388 | - f_pack_is_inst "build-essential" "apt-get" "\"build-essential\" already installed!" | |
| 389 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 390 | - if [[ "$DISTRO_TYPE" == "RH" ]] ; then | |
| 391 | - f_pack_is_inst "gcc-c++" "yum" "\"gcc-c++\" already installed!" | |
| 392 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 393 | - yum -y install gcc-c++ | |
| 394 | - fi | |
| 395 | - f_pack_is_inst "autoconf" "yum" "\"autoconf\" already installed!" | |
| 396 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 397 | - yum -y install autoconf | |
| 398 | - fi | |
| 399 | - f_pack_is_inst "automake" "yum" "\"automake\" already installed!" | |
| 400 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 401 | - yum -y install automake | |
| 402 | - fi | |
| 403 | - f_pack_is_inst "libtool" "yum" "\"libtool\" already installed!" | |
| 404 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 405 | - yum -y install libtool | |
| 406 | - fi | |
| 407 | - f_pack_is_inst "zlib-devel" "yum" "\"zlib-devel\" already installed!" | |
| 408 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 409 | - yum -y install zlib-devel | |
| 410 | - fi | |
| 411 | - f_pack_is_inst "openssl-devel" "yum" "\"openssl-devel\" already installed!" | |
| 412 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 413 | - yum -y install openssl-devel | |
| 414 | - fi | |
| 415 | - f_pack_is_inst "postgresql-devel" "yum" "\"postgresql-devel\" already installed!" | |
| 416 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 417 | - yum -y install postgresql-devel | |
| 418 | - fi | |
| 419 | - elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then | |
| 420 | - f_pack_is_inst "g++" "apt-get" "\"g++\" already installed!" | |
| 421 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 422 | - apt-get -y install g++ | |
| 423 | - fi | |
| 424 | - f_pack_is_inst "autoconf" "apt-get" "\"autoconf\" already installed!" | |
| 425 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 426 | - apt-get -y install autoconf | |
| 427 | - fi | |
| 428 | - f_pack_is_inst "make" "apt-get" "\"make\" already installed!" | |
| 429 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 430 | - apt-get -y install make | |
| 431 | - fi | |
| 432 | - f_pack_is_inst "libtool" "apt-get" "\"libtool\" already installed!" | |
| 433 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 434 | - apt-get -y install libtool | |
| 435 | - fi | |
| 436 | - f_pack_is_inst "zlib1g-dev" "apt-get" "\"zlib1g-dev\" already installed!" | |
| 437 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 438 | - apt-get -y install zlib1g-dev | |
| 439 | - fi | |
| 440 | - f_pack_is_inst "libssl-dev" "apt-get" "\"libssl-dev\" already installed!" | |
| 441 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 442 | - apt-get -y install libssl-dev | |
| 443 | - fi | |
| 444 | - f_pack_is_inst "dh-exec" "apt-get" "\"dh-exec\" already installed!" | |
| 445 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 446 | - apt-get -y install dh-exec | |
| 447 | - fi | |
| 448 | - f_pack_is_inst "libpq-dev" "apt-get" "\"libpq-dev\" already installed!" | |
| 449 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 450 | - apt-get -y install libpq-dev | |
| 451 | - fi | |
| 452 | - elif [[ "$DISTRO_TYPE" == "SUSE" ]] ; then | |
| 453 | - f_pack_is_inst "gcc-c++" "zypper" "\"gcc-c++\" already installed!" | |
| 388 | + if [[ "$DISTRO_TYPE" == "RH" ]] ; then | |
| 389 | + f_pack_is_inst "gcc-c++" "yum" "\"gcc-c++\" already installed!" | |
| 390 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 391 | + yum -y install gcc-c++ | |
| 392 | + fi | |
| 393 | + f_pack_is_inst "autoconf" "yum" "\"autoconf\" already installed!" | |
| 394 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 395 | + yum -y install autoconf | |
| 396 | + fi | |
| 397 | + f_pack_is_inst "automake" "yum" "\"automake\" already installed!" | |
| 398 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 399 | + yum -y install automake | |
| 400 | + fi | |
| 401 | + f_pack_is_inst "libtool" "yum" "\"libtool\" already installed!" | |
| 402 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 403 | + yum -y install libtool | |
| 404 | + fi | |
| 405 | + f_pack_is_inst "zlib-devel" "yum" "\"zlib-devel\" already installed!" | |
| 406 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 407 | + yum -y install zlib-devel | |
| 408 | + fi | |
| 409 | + f_pack_is_inst "openssl-devel" "yum" "\"openssl-devel\" already installed!" | |
| 410 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 411 | + yum -y install openssl-devel | |
| 412 | + fi | |
| 413 | + f_pack_is_inst "postgresql-devel" "yum" "\"postgresql-devel\" already installed!" | |
| 414 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 415 | + yum -y install postgresql-devel | |
| 416 | + fi | |
| 417 | + elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then | |
| 418 | + f_pack_is_inst "g++" "apt-get" "\"g++\" already installed!" | |
| 419 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 420 | + apt-get -y install g++ | |
| 421 | + fi | |
| 422 | + f_pack_is_inst "autoconf" "apt-get" "\"autoconf\" already installed!" | |
| 423 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 424 | + apt-get -y install autoconf | |
| 425 | + fi | |
| 426 | + f_pack_is_inst "make" "apt-get" "\"make\" already installed!" | |
| 427 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 428 | + apt-get -y install make | |
| 429 | + fi | |
| 430 | + f_pack_is_inst "libtool" "apt-get" "\"libtool\" already installed!" | |
| 431 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 432 | + apt-get -y install libtool | |
| 433 | + fi | |
| 434 | + f_pack_is_inst "zlib1g-dev" "apt-get" "\"zlib1g-dev\" already installed!" | |
| 435 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 436 | + apt-get -y install zlib1g-dev | |
| 437 | + fi | |
| 438 | + f_pack_is_inst "libssl-dev" "apt-get" "\"libssl-dev\" already installed!" | |
| 439 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 440 | + apt-get -y install libssl-dev | |
| 441 | + fi | |
| 442 | + f_pack_is_inst "dh-exec" "apt-get" "\"dh-exec\" already installed!" | |
| 443 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 444 | + apt-get -y install dh-exec | |
| 445 | + fi | |
| 446 | + f_pack_is_inst "libpq-dev" "apt-get" "\"libpq-dev\" already installed!" | |
| 447 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 448 | + apt-get -y install libpq-dev | |
| 449 | + fi | |
| 450 | + elif [[ "$DISTRO_TYPE" == "SUSE" ]] ; then | |
| 451 | + f_pack_is_inst "gcc-c++" "zypper" "\"gcc-c++\" already installed!" | |
| 452 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 453 | + zypper --non-interactive install gcc-c++ | |
| 454 | + fi | |
| 455 | + if [[ "$DISTRO_NAME" != "SLES" ]] ; then | |
| 456 | + f_pack_is_inst "automake" "zypper" "\"automake\" already installed!" | |
| 454 | 457 | if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then |
| 455 | - zypper --non-interactive install gcc-c++ | |
| 456 | - fi | |
| 457 | - if [[ "$DISTRO_NAME" != "SLES" ]] ; then | |
| 458 | - f_pack_is_inst "autoconf" "zypper" "\"autoconf\" already installed!" | |
| 459 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 460 | - zypper --non-interactive install autoconf | |
| 461 | - fi | |
| 462 | - f_pack_is_inst "automake" "zypper" "\"automake\" already installed!" | |
| 463 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 464 | - zypper --non-interactive install automake | |
| 465 | - fi | |
| 466 | - f_pack_is_inst "make" "zypper" "\"make\" already installed!" | |
| 467 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 468 | - zypper --non-interactive install make | |
| 469 | - fi | |
| 470 | - f_pack_is_inst "libtool" "zypper" "\"libtool\" already installed!" | |
| 471 | - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 472 | - zypper --non-interactive install libtool | |
| 473 | - fi | |
| 458 | + zypper --non-interactive install automake | |
| 474 | 459 | fi |
| 475 | - f_pack_is_inst "zlib-devel" "zypper" "\"zlib-devel\" already installed!" | |
| 460 | + f_pack_is_inst "make" "zypper" "\"make\" already installed!" | |
| 476 | 461 | if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then |
| 477 | - zypper --non-interactive install zlib-devel | |
| 462 | + zypper --non-interactive install make | |
| 478 | 463 | fi |
| 479 | - f_pack_is_inst "libopenssl-devel" "zypper" "\"libopenssl-devel\" already installed!" | |
| 464 | + f_pack_is_inst "libtool" "zypper" "\"libtool\" already installed!" | |
| 480 | 465 | if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then |
| 481 | - zypper --non-interactive install libopenssl-devel | |
| 466 | + zypper --non-interactive install libtool | |
| 482 | 467 | fi |
| 483 | - f_pack_is_inst "postgresql-devel" "zypper" "\"postgresql-devel\" already installed!" | |
| 468 | + f_pack_is_inst "autoconf" "zypper" "\"autoconf\" already installed!" | |
| 484 | 469 | if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then |
| 485 | - zypper --non-interactive install postgresql-devel | |
| 470 | + zypper --non-interactive install autoconf | |
| 486 | 471 | fi |
| 487 | 472 | fi |
| 473 | + f_pack_is_inst "zlib-devel" "zypper" "\"zlib-devel\" already installed!" | |
| 474 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 475 | + zypper --non-interactive install zlib-devel | |
| 476 | + fi | |
| 477 | + f_pack_is_inst "libopenssl-devel" "zypper" "\"libopenssl-devel\" already installed!" | |
| 478 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 479 | + zypper --non-interactive install libopenssl-devel | |
| 480 | + fi | |
| 481 | + f_pack_is_inst "postgresql-devel" "zypper" "\"postgresql-devel\" already installed!" | |
| 482 | + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then | |
| 483 | + zypper --non-interactive install postgresql-devel | |
| 484 | + fi | |
| 488 | 485 | fi |
| 489 | 486 | F_COM_PKS_INSTALLED=1 |
| 490 | 487 | fi |
| ... | ... | @@ -1227,6 +1224,7 @@ Use empty for \"$APP_URL_F\" (used like e.g. http://<ip_or_name>/$APP_URL_F)!" |
| 1227 | 1224 | eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\"" |
| 1228 | 1225 | f_ez_sed "<SQLALCHEMY_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 |
| 1229 | 1226 | |
| 1227 | + HTTPD_CONF_PATH="" | |
| 1230 | 1228 | if [[ "$DISTRO_TYPE" == "RH" ]] ; then |
| 1231 | 1229 | HTTPD_CONF_PATH="/etc/httpd/conf.d" |
| 1232 | 1230 | elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then |
| ... | ... | @@ -1275,6 +1273,13 @@ f_close_section |
| 1275 | 1273 | # FINAL! |
| 1276 | 1274 | # -------------------------------------- |
| 1277 | 1275 | |
| 1276 | +ERROR_LOG_FL="" | |
| 1277 | +if [[ "$DISTRO_TYPE" == "RH" ]] || [[ "$DISTRO_TYPE" == "SUSE" ]]; then | |
| 1278 | + ERROR_LOG_FL="error_log" | |
| 1279 | +elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then | |
| 1280 | + ERROR_LOG_FL="error.log" | |
| 1281 | +fi | |
| 1282 | + | |
| 1278 | 1283 | EZ_I_SKIP_ON_V=0 |
| 1279 | 1284 | read -d '' TITLE_F <<"EOF" |
| 1280 | 1285 | Installer finished! Thanks! |
| ... | ... | @@ -1325,7 +1330,7 @@ $PERSIST_CONFIG |
| 1325 | 1330 | vi $HTTPD_CONF_PATH/lbg.conf |
| 1326 | 1331 | |
| 1327 | 1332 | Log... |
| 1328 | - less $VAR_LOG_HTTPD/error_log" | |
| 1333 | + less $VAR_LOG_HTTPD/$ERROR_LOG_FL" | |
| 1329 | 1334 | |
| 1330 | 1335 | f_end "$TITLE_F" "$USEFUL_INFO_F" |
| 1331 | 1336 | TITLE_F="" | ... | ... |