diff --git a/.directory b/.directory index bb1f4ba..ef7226a 100644 --- a/.directory +++ b/.directory @@ -1,5 +1,8 @@ [Dolphin] PreviewsShown=true -Timestamp=2016,5,13,17,48,30 +Timestamp=2016,6,14,9,58,34 Version=3 ViewMode=1 + +[Settings] +HiddenFilesShown=true diff --git a/README.md b/README.md deleted file mode 100644 index 1633541..0000000 --- a/README.md +++ /dev/null @@ -1,44 +0,0 @@ -Instalador LBG - LBGenerator -============= - -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). - -Instruções: ------ - -Baixe usando o comando... - -``` -git clone git@softwarepublico.gov.br:lightbase/lbginst.git -``` - -Na pasta principal do projeto instale usando o comando... - -``` -bash install.sh -``` - -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! - -**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)! - -LightBase - Direto à informação! -============= - -O que é o LightBase? ------ - -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. - -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. - -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. - - 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. - -Contato ------ - -BR Light LTDA - LightBase Consulting in Public Software/LightBase Consultoria em Software Público -Free Software + Our Ideas = Best Solution!/Software Livre + Nossas Idéias = Melhor Solução! -+55-61-3347-1949 - http://www.LightBase.com.br - Brazil-DF diff --git a/install.sh b/install.sh index 37bd140..4d73307 100755 --- a/install.sh +++ b/install.sh @@ -48,8 +48,8 @@ based on these. - We NOTICE you... This installer assumes that the target distribution has a "standard - setup". This may include components such as firewall, SELinux - and others. + setup". This may include components such as firewall, SELinux + and others. - We WARNING you... THIS INSTALLER AND RESULTING PRODUCTS COMES WITH ABSOLUTELY NO WARRANTY! @@ -385,106 +385,103 @@ f_common_packs() { : 'Instalar pacotes que são comuns a determinados componentes.' if [ ${F_COM_PKS_INSTALLED} -eq 0 ] ; then - f_pack_is_inst "build-essential" "apt-get" "\"build-essential\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - if [[ "$DISTRO_TYPE" == "RH" ]] ; then - f_pack_is_inst "gcc-c++" "yum" "\"gcc-c++\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install gcc-c++ - fi - f_pack_is_inst "autoconf" "yum" "\"autoconf\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install autoconf - fi - f_pack_is_inst "automake" "yum" "\"automake\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install automake - fi - f_pack_is_inst "libtool" "yum" "\"libtool\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install libtool - fi - f_pack_is_inst "zlib-devel" "yum" "\"zlib-devel\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install zlib-devel - fi - f_pack_is_inst "openssl-devel" "yum" "\"openssl-devel\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install openssl-devel - fi - f_pack_is_inst "postgresql-devel" "yum" "\"postgresql-devel\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - yum -y install postgresql-devel - fi - elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then - f_pack_is_inst "g++" "apt-get" "\"g++\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install g++ - fi - f_pack_is_inst "autoconf" "apt-get" "\"autoconf\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install autoconf - fi - f_pack_is_inst "make" "apt-get" "\"make\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install make - fi - f_pack_is_inst "libtool" "apt-get" "\"libtool\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install libtool - fi - f_pack_is_inst "zlib1g-dev" "apt-get" "\"zlib1g-dev\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install zlib1g-dev - fi - f_pack_is_inst "libssl-dev" "apt-get" "\"libssl-dev\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install libssl-dev - fi - f_pack_is_inst "dh-exec" "apt-get" "\"dh-exec\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install dh-exec - fi - f_pack_is_inst "libpq-dev" "apt-get" "\"libpq-dev\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - apt-get -y install libpq-dev - fi - elif [[ "$DISTRO_TYPE" == "SUSE" ]] ; then - f_pack_is_inst "gcc-c++" "zypper" "\"gcc-c++\" already installed!" + if [[ "$DISTRO_TYPE" == "RH" ]] ; then + f_pack_is_inst "gcc-c++" "yum" "\"gcc-c++\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install gcc-c++ + fi + f_pack_is_inst "autoconf" "yum" "\"autoconf\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install autoconf + fi + f_pack_is_inst "automake" "yum" "\"automake\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install automake + fi + f_pack_is_inst "libtool" "yum" "\"libtool\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install libtool + fi + f_pack_is_inst "zlib-devel" "yum" "\"zlib-devel\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install zlib-devel + fi + f_pack_is_inst "openssl-devel" "yum" "\"openssl-devel\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install openssl-devel + fi + f_pack_is_inst "postgresql-devel" "yum" "\"postgresql-devel\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + yum -y install postgresql-devel + fi + elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then + f_pack_is_inst "g++" "apt-get" "\"g++\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install g++ + fi + f_pack_is_inst "autoconf" "apt-get" "\"autoconf\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install autoconf + fi + f_pack_is_inst "make" "apt-get" "\"make\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install make + fi + f_pack_is_inst "libtool" "apt-get" "\"libtool\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install libtool + fi + f_pack_is_inst "zlib1g-dev" "apt-get" "\"zlib1g-dev\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install zlib1g-dev + fi + f_pack_is_inst "libssl-dev" "apt-get" "\"libssl-dev\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install libssl-dev + fi + f_pack_is_inst "dh-exec" "apt-get" "\"dh-exec\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install dh-exec + fi + f_pack_is_inst "libpq-dev" "apt-get" "\"libpq-dev\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + apt-get -y install libpq-dev + fi + elif [[ "$DISTRO_TYPE" == "SUSE" ]] ; then + f_pack_is_inst "gcc-c++" "zypper" "\"gcc-c++\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + zypper --non-interactive install gcc-c++ + fi + if [[ "$DISTRO_NAME" != "SLES" ]] ; then + f_pack_is_inst "automake" "zypper" "\"automake\" already installed!" if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install gcc-c++ - fi - if [[ "$DISTRO_NAME" != "SLES" ]] ; then - f_pack_is_inst "autoconf" "zypper" "\"autoconf\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install autoconf - fi - f_pack_is_inst "automake" "zypper" "\"automake\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install automake - fi - f_pack_is_inst "make" "zypper" "\"make\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install make - fi - f_pack_is_inst "libtool" "zypper" "\"libtool\" already installed!" - if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install libtool - fi + zypper --non-interactive install automake fi - f_pack_is_inst "zlib-devel" "zypper" "\"zlib-devel\" already installed!" + f_pack_is_inst "make" "zypper" "\"make\" already installed!" if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install zlib-devel + zypper --non-interactive install make fi - f_pack_is_inst "libopenssl-devel" "zypper" "\"libopenssl-devel\" already installed!" + f_pack_is_inst "libtool" "zypper" "\"libtool\" already installed!" if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install libopenssl-devel + zypper --non-interactive install libtool fi - f_pack_is_inst "postgresql-devel" "zypper" "\"postgresql-devel\" already installed!" + f_pack_is_inst "autoconf" "zypper" "\"autoconf\" already installed!" if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then - zypper --non-interactive install postgresql-devel + zypper --non-interactive install autoconf fi fi + f_pack_is_inst "zlib-devel" "zypper" "\"zlib-devel\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + zypper --non-interactive install zlib-devel + fi + f_pack_is_inst "libopenssl-devel" "zypper" "\"libopenssl-devel\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + zypper --non-interactive install libopenssl-devel + fi + f_pack_is_inst "postgresql-devel" "zypper" "\"postgresql-devel\" already installed!" + if [ ${F_PACK_IS_INST_R} -eq 0 ] ; then + zypper --non-interactive install postgresql-devel + fi fi F_COM_PKS_INSTALLED=1 fi @@ -1227,6 +1224,7 @@ Use empty for \"$APP_URL_F\" (used like e.g. http:///$APP_URL_F)!" eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\"" f_ez_sed "" "$PG_CFG_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 + HTTPD_CONF_PATH="" if [[ "$DISTRO_TYPE" == "RH" ]] ; then HTTPD_CONF_PATH="/etc/httpd/conf.d" elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then @@ -1275,6 +1273,13 @@ f_close_section # FINAL! # -------------------------------------- +ERROR_LOG_FL="" +if [[ "$DISTRO_TYPE" == "RH" ]] || [[ "$DISTRO_TYPE" == "SUSE" ]]; then + ERROR_LOG_FL="error_log" +elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then + ERROR_LOG_FL="error.log" +fi + EZ_I_SKIP_ON_V=0 read -d '' TITLE_F <<"EOF" Installer finished! Thanks! @@ -1325,7 +1330,7 @@ $PERSIST_CONFIG vi $HTTPD_CONF_PATH/lbg.conf Log... - less $VAR_LOG_HTTPD/error_log" + less $VAR_LOG_HTTPD/$ERROR_LOG_FL" f_end "$TITLE_F" "$USEFUL_INFO_F" TITLE_F="" -- libgit2 0.21.2