From 4493866aa59ff67600c01f60ce1dd24c34e9af2a Mon Sep 17 00:00:00 2001 From: edulucio Date: Fri, 1 Sep 2017 14:43:07 -0300 Subject: [PATCH] Correções diversas! By Questor --- LBGenerator.tar.gz | Bin 2930134 -> 0 bytes ez_i.bash | 6 +++--- install.bash | 220 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------- lbn-basic-dt-strt/lb_basic_dt_strt.sql | 297 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------- liblightbase.tar.gz | Bin 1048605 -> 0 bytes other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist | 8 ++++---- other-srcs-n-apps/lbg.conf-ngix-pserve-dist | 2 +- other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist | 2 +- other-srcs-n-apps/lbg.conf-supervisord-dist | 3 +-- other-srcs-n-apps/production.ini.uwsgi.srv-dist | 2 +- other-srcs-n-apps/supervisord-SLES-dist | 1 - other-srcs-n-apps/uwsgi-DEB-dist | 4 ++-- other-srcs-n-apps/uwsgi-RHEL-dist | 4 ++-- other-srcs-n-apps/uwsgi-SLES-dist | 4 ++-- py-packs-LBGenerator.bash | 40 ++++++++++++++++++++-------------------- py-packs-liblightbase.bash | 14 +++++++------- py-packs-supervisor.bash | 2 +- py-packs-uwsgi.bash | 2 +- tux.txt | 7 +++++++ 19 files changed, 420 insertions(+), 198 deletions(-) create mode 100755 tux.txt diff --git a/LBGenerator.tar.gz b/LBGenerator.tar.gz index 1ae2c00..48aa5fc 100644 Binary files a/LBGenerator.tar.gz and b/LBGenerator.tar.gz differ diff --git a/ez_i.bash b/ez_i.bash index 342e221..46188d2 100755 --- a/ez_i.bash +++ b/ez_i.bash @@ -441,7 +441,7 @@ f_chk_by_path_hlp() { VER_TYPE_P (str): Se o caminho físico é para um diretório ("d") ou arquivo ("f"). EXIST_MSG_P (Optional[str]): Mensagem a ser "printada" caso o - aplicativo/pacote/arquivo exista. Se não informado ou vazio não + aplicativo/pacote/arquivo/pasta exista. Se não informado ou vazio não exibe a mensagem. SKIP_MSG_P (Optional[int]): Não exibir mensagem. @@ -663,9 +663,9 @@ f_yes_no() { eval "read -e -t$WAIT_UNTIL_P -r -p \"$QUESTION_P (y/n) (\"$AUT_ANSWER\" in $WAIT_UNTIL_P seconds) \" RESP_V" || echo "" fi - if [[ $RESP_V =~ ^([sS]|[yY])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 1 ] && [ -z "$RESP_V" ] ) ; then + if [[ $RESP_V =~ ^([sS]|[yY])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 1 ] && [ -z "$RESP_V" ] && [ -n "$WAIT_UNTIL_P" ] ) ; then YES_NO_R=1 - elif [[ $RESP_V =~ ^([nN])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 0 ] && [ -z "$RESP_V" ] ) ; then + elif [[ $RESP_V =~ ^([nN])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 0 ] && [ -z "$RESP_V" ] && [ -n "$WAIT_UNTIL_P" ] ) ; then if [ -n "$RESP_V" ] ; then echo "NO!" fi diff --git a/install.bash b/install.bash index b6c0800..6ea9079 100755 --- a/install.bash +++ b/install.bash @@ -24,18 +24,16 @@ read -d '' TITLE_F <<"EOF" LBG - LBGenerator Installer EOF -read -d '' VERSION_F <<"EOF" -0.8.0.0 -EOF - # NOTE: Para versionamento usar "MAJOR.MINOR.REVISION.BUILDNUMBER"! # Usar a mesma versão contida no setup.py! By Questor # http://programmers.stackexchange.com/questions/24987/what-exactly-is-the-build-number-in-major-minor-buildnumber-revision +read -d '' VERSION_F <<"EOF" +0.8.0.0 +EOF + read -d '' ABOUT_F <<"EOF" This script will install LBG - LBGenerator the LightBase data specification and model! - -Have fun! =D EOF read -d '' WARNINGS_F <<"EOF" @@ -64,11 +62,12 @@ EOF read -d '' COMPANY_F <<"EOF" BR Light LTDA - LightBase Consulting in Public Software/LightBase Consultoria em Software Público -Software livre! Abrace essa idéia!/Free software! Embrace that idea! +55-61-3347-1949/+55-61-3340-6966 - http://brlight.org/ - Brasil-DF +Free software! Embrace that idea!/Software livre! Abrace essa idéia! EOF -f_begin "$TITLE_F" "$VERSION_F" "$ABOUT_F" "$WARNINGS_F" "$COMPANY_F" +TUX=$(cat $SCRIPTDIR_V/tux.txt) +f_begin "$TITLE_F" "$VERSION_F" "$ABOUT_F$TUX" "$WARNINGS_F" "$COMPANY_F" ABOUT_F="" WARNINGS_F="" @@ -265,11 +264,11 @@ if [[ "$DISTRO_TYPE" == "RH" ]] ; then EZ_I_SKIP_ON_V=0 f_open_section f_div_section - f_yes_no "Disable SElinux (use "y" if you never did it)?" + f_yes_no "Disable SElinux (use \"y\" if you never did it)?" if [ ${YES_NO_R} -eq 1 ] ; then setenforce 0 - # NOTE: As condições abaixo visam evitar que o arquivo seja + # NOTE: As condições abaixo visam evitar que o arquivo seja # desnecessariamente e erroneamente modificado! By Questor EZ_I_SKIP_ON_V=$FAST_INST f_fl_cont_str "# SELINUX=enforcing" "/etc/sysconfig/selinux" "The file \"/etc/sysconfig/selinux\" probably has already been changed! Check it!" @@ -578,6 +577,15 @@ if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then mv elasticsearch-servicewrapper-master/service /usr/local/elasticsearch/bin/ rm -rf elasticsearch-servicewrapper-master /usr/local/elasticsearch/bin/service/elasticsearch install + f_div_section + + # NOTE: [ref.: https://stackoverflow.com/questions/16432300/how-to-config-single-node-for-single-cluster-standalone-cluster-elasticsearch]! By Questor + f_yes_no "Use $ES_NAME as single node (standalone server) (\"y\" highly recommended)? +* It will not be accessible to others servers (nodes) and will not discover others servers (nodes); +* This prevents erroneous and improper replication of your indexes." + if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then + f_ez_sed "#http.jsonp.enable: true" "#http.jsonp.enable: true\n\n# It will not be accessible to others server (nodes) and will not discover\n# other server (nodes).\nnode.local: true" "/usr/local/elasticsearch/config/elasticsearch.yml" + fi $ES_SERV_CMD start fi f_fire_hlp "elasticsearch" 9200 @@ -835,21 +843,17 @@ Use empty for \"$PG_DB_F\" (recommended)!" cd /tmp F_GET_STDERR_R_HOLDER_0="" LINE_BREAKS_0="" - + EZ_I_SKIP_ON_V=$FAST_INST # NOTE: Define o "LC_COLLATE" e o "LC_CTYPE" para a database criada. # Não é necessário, mas se u usuário quiser, tem a opção! By Questor - LC_C_PG="en_US.UTF-8" + LC_C_PG="$LANG" f_div_section f_get_usr_input "Enter the \"LC_COLLATE\"/\"LC_CTYPE\" for \"$PG_DB_F\" database (E.g. en_US.UTF-8, pt_BR.UTF-8...). -Use empty for \"$LC_C_PG\" (enough and recommended for LBG - LBGenerator)!" 1 +Use empty for \"$LANG\" (system default)!" 1 if [ -n "$GET_USR_INPUT_R" ] ; then LC_C_PG=$GET_USR_INPUT_R fi - - # f_get_stderr_stdout "sudo -u postgres psql -c \"CREATE DATABASE $PG_DB_F WITH ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'pt_BR.UTF-8' LC_CTYPE = 'pt_BR.UTF-8' CONNECTION LIMIT = -1;\"" - # f_get_stderr_stdout "sudo -u postgres psql -c \"CREATE DATABASE $PG_DB_F WITH ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' CONNECTION LIMIT = -1;\"" f_get_stderr_stdout "sudo -u postgres psql -c \"CREATE DATABASE $PG_DB_F WITH ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = '$LC_C_PG' LC_CTYPE = '$LC_C_PG' CONNECTION LIMIT = -1;\"" - F_GET_STDERR_R_HOLDER_0=$F_GET_STDERR_R_HOLDER_0$F_GET_STDERR_R f_get_stderr_stdout "sudo -u postgres psql -c \"ALTER DATABASE $PG_DB_F SET DateStyle = 'iso, dmy';\"" if [[ $F_GET_STDERR_R_HOLDER_0 != "" ]]; then @@ -862,6 +866,7 @@ Use empty for \"$LC_C_PG\" (enough and recommended for LBG - LBGenerator)!" 1 f_enter_to_cont "The database \"$PG_DB_F\" already created!" EZ_I_SKIP_ON_V=0 else + EZ_I_SKIP_ON_V=0 f_div_section echo "Error when creating \"$PG_DB_F\" database! ERROR: \"$F_GET_STDERR_R_HOLDER_0\"." f_div_section @@ -899,23 +904,9 @@ BASE_INST_DIR_V="/usr/local/lb" # Criar o diretório base da instalação! f_create_base_dir() { - EZ_I_SKIP_ON_V=$FAST_INST - QUESTION_F="Insert where the base installation directory (name \"lb\") will be created (don't use \"/\" at the end). -Use empty for \"/usr/local\"!" - f_div_section - f_get_usr_input "$QUESTION_F" 1 - QUESTION_F="" - if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ -z "$GET_USR_INPUT_R" ] ; then - f_chk_by_path_hlp "$BASE_INST_DIR_V" "d" "\"$BASE_INST_DIR_V\" directory already created!" - if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then - mkdir -p "$BASE_INST_DIR_V" - fi - else - BASE_INST_DIR_V="$GET_USR_INPUT_R/lb" - f_chk_by_path_hlp "$BASE_INST_DIR_V" "d" "\"$BASE_INST_DIR_V\" directory already created!" - if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then - mkdir -p "$BASE_INST_DIR_V" - fi + f_chk_by_path_hlp "$BASE_INST_DIR_V" "d" + if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then + mkdir -p "$BASE_INST_DIR_V" fi } @@ -1014,9 +1005,11 @@ f_create_ve32() { Args: DONT_PROMPT_TO_INST (Optional[int]): Não questiona o usuário se deseja criar. Padrão 0. + VE_NAME (str): Nome do virtualenv a ser criado. ' DONT_PROMPT_TO_INST=$1 + VE_NAME=$2 if [ -z "$DONT_PROMPT_TO_INST" ] ; then DONT_PROMPT_TO_INST=0 fi @@ -1027,7 +1020,7 @@ f_create_ve32() { fi f_enter_to_cont "Create the virtual environment (python3.2)!" EZ_I_SKIP_ON_V=$FAST_INST - f_chk_by_path_hlp "$BASE_INST_DIR_V/ve32" "d" "Virtual environment (python3.2) already created in \"$BASE_INST_DIR_V/ve32\"!" + f_chk_by_path_hlp "$BASE_INST_DIR_V/$VE_NAME" "d" "Virtual environment (python3.2) already created in \"$BASE_INST_DIR_V/$VE_NAME\"!" if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then if [[ "$DISTRO_TYPE" == "RH" ]] ; then f_pack_is_inst "python-setuptools" "yum" "\"python-setuptools\" already installed!" @@ -1047,8 +1040,8 @@ f_create_ve32() { fi f_common_packs cd "$BASE_INST_DIR_V" - $BASE_INST_DIR_V/py32/bin/virtualenv-3.2 ve32 - mkdir "$BASE_INST_DIR_V/ve32/src" + $BASE_INST_DIR_V/py32/bin/virtualenv-3.2 $VE_NAME + mkdir "$BASE_INST_DIR_V/$VE_NAME/src" fi EZ_I_SKIP_ON_V=$FAST_INST } @@ -1056,6 +1049,41 @@ f_create_ve32() { # < ----------------------------------------- # > ----------------------------------------- +# Determine an appropriate amount of processes! + +NPROCESSES=0 +f_num_for_procs() { + : 'Determine an appropriate amount of processes.' + + if (( NPROCESSES == 0 )) ; then + f_get_stderr_stdout "nproc" + if [[ $F_GET_STDERR_R == "" ]]; then + + # NOTE: Esse é o cálculo recomendado segundo algumas fontes. Eu + # preferi fazer pelo dobro da quantidade de "cores" obtidas! + # By Questor + # (2 Workers * CPU Cores) + 1 + # --------------------------- + # Para 1 core -> (2*1)+1 = 3 + # Para 2 cores -> (2*2)+1 = 5 + # Para 4 cores -> (2*4)+1 = 9 + NPROCESSES=$(( F_GET_STDOUT_R * 2 )) + f_div_section + f_get_usr_input "The recommended amount of processes to use on this server is \"$NPROCESSES\". +Use empty for \"$NPROCESSES\" (recommended)!" 1 + if [ -n "$GET_USR_INPUT_R" ] ; then + NPROCESSES=$GET_USR_INPUT_R + fi + else + f_enter_to_cont "An error occurred when trying to determine an appropriate amount of processes to use on this server! ERROR: \"$F_GET_STDERR_R$F_GET_STDOUT_R\"." + f_error_exit + fi + fi +} + +# < ----------------------------------------- + +# > ----------------------------------------- # Instalar o NGINX (nginx)! NGINX_INST=0 @@ -1469,7 +1497,7 @@ f_inst_uwsgi() { elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then \cp "$SCRIPTDIR_V/other-srcs-n-apps/uwsgi-DEB-dist" "/etc/init.d/uwsgi" fi - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "/etc/init.d/uwsgi" 1 + f_ez_sed "" "$BASE_INST_DIR_V/uwsgi_ve32" "/etc/init.d/uwsgi" 1 # NOTE: Criar o usuário "uwsgi" caso não exista! By Questor if [ -z "`grep uwsgi /etc/passwd`" ]; then @@ -1480,9 +1508,9 @@ f_inst_uwsgi() { # NOTE: Cria configurações e diretórios para que o uWSGI opere no modo # "emperor"! By Questor - mkdir -p "$BASE_INST_DIR_V/ve32/src/uWSGI/vassals" - \cp "$SCRIPTDIR_V/other-srcs-n-apps/production.ini.uwsgi.srv-dist" "$BASE_INST_DIR_V/ve32/src/uWSGI/production.ini" - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/ve32/src/uWSGI/production.ini" + mkdir -p "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/vassals" + \cp "$SCRIPTDIR_V/other-srcs-n-apps/production.ini.uwsgi.srv-dist" "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/production.ini" + f_ez_sed "" "$BASE_INST_DIR_V/uwsgi_ve32" "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/production.ini" if [[ "$DISTRO_TYPE" == "RH" ]] ; then chmod 755 uwsgi @@ -1531,18 +1559,18 @@ f_inst_lib() { f_yes_no "Install the LIB - liblightbase?" if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then EZ_I_SKIP_ON_V=$FAST_INST - f_chk_by_path_hlp "$BASE_INST_DIR_V/ve32/src/liblightbase" "d" "\"liblightbase\" already installed in \"$BASE_INST_DIR_V/ve32/src\"!" + f_chk_by_path_hlp "$BASE_INST_DIR_V/lbg_ve32/src/liblightbase" "d" "\"liblightbase\" already installed in \"$BASE_INST_DIR_V/lbg_ve32/src\"!" F_BAK_MD_R=1 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then - f_ez_mv_bak "$BASE_INST_DIR_V/ve32/src/liblightbase" "Backup old version and update? (\"y\" recommended)" + f_ez_mv_bak "$BASE_INST_DIR_V/lbg_ve32/src/liblightbase" "Backup old version and update? (\"y\" recommended)" fi if [ ${F_BAK_MD_R} -eq 1 ] ; then f_inst_lib_py_packs 1 cd "$SCRIPTDIR_V" tar -zxvf liblightbase.tar.gz - mv "$SCRIPTDIR_V/liblightbase" "$BASE_INST_DIR_V/ve32/src/" - cd "$BASE_INST_DIR_V/ve32/src/liblightbase" - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + mv "$SCRIPTDIR_V/liblightbase" "$BASE_INST_DIR_V/lbg_ve32/src/" + cd "$BASE_INST_DIR_V/lbg_ve32/src/liblightbase" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" fi fi EZ_I_SKIP_ON_V=$FAST_INST @@ -1600,10 +1628,10 @@ f_inst_ve_py2X() { fi if [[ "$DISTRO_TYPE" == "RH" ]] ; then PYTHON_2_X="2.7" - VE_2_X="ve27" + VE_2_X="supervisor_ve27" elif [[ "$DISTRO_TYPE" == "DEB" ]] || [[ "$DISTRO_TYPE" == "SUSE" ]] ; then PYTHON_2_X="2.7" - VE_2_X="ve27" + VE_2_X="supervisor_ve27" fi if [ ${DONT_PROMPT_TO_INST} -eq 1 ] || [ ${FAST_INST} -eq 1 ] ; then EZ_I_SKIP_ON_V=1 @@ -1767,8 +1795,6 @@ f_inst_supervisor_py_packs() { # < ----------------------------------------- -# < ----------------------------------------- - SVISOR_PORT=9001 SVISOR_USER="lbu" SVISOR_PWD="lbu" @@ -1819,7 +1845,7 @@ f_inst_supervisor(){ f_ez_mv_bak "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" "" 1 0 1 \cp "$SCRIPTDIR_V/other-srcs-n-apps/supervisord.conf-dist" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/supervisord.conf" \cp "$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-supervisord-dist" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" 1 + f_ez_sed "" "$BASE_INST_DIR_V/lbg_ve32" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" 1 # NOTE: Determinar um número adequado de processos! By Questor f_procs_qtt 2 @@ -1951,7 +1977,7 @@ if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then f_create_base_dir f_inst_py32 1 f_inst_ve_py32 1 - f_create_ve32 1 + f_create_ve32 1 "lbg_ve32" if [[ "$DISTRO_TYPE" == "DEB" ]] ; then NGINX_CONF_PATH="/etc/nginx/sites-available" NGINX_CONF_PATH_E="/etc/nginx/sites-enabled" @@ -2031,17 +2057,17 @@ Use empty for \"$HTTP_PORT_W\" (recommended)!" esac f_inst_lib 1 f_inst_lbg_py_packs 1 - f_chk_by_path_hlp "$BASE_INST_DIR_V/ve32/src/LBGenerator" "d" "\"LBGenerator\" already installed in \"$BASE_INST_DIR_V/ve32/src\"!" + f_chk_by_path_hlp "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator" "d" "\"LBGenerator\" already installed in \"$BASE_INST_DIR_V/lbg_ve32/src\"!" F_BAK_MD_R=1 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then - f_ez_mv_bak "$BASE_INST_DIR_V/ve32/src/LBGenerator" "Backup old version and update? (\"y\" recommended)" + f_ez_mv_bak "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator" "Backup old version and update? (\"y\" recommended)" fi if [ ${F_BAK_MD_R} -eq 1 ] ; then cd "$SCRIPTDIR_V" tar -zxvf LBGenerator.tar.gz - mv "$SCRIPTDIR_V/LBGenerator" "$BASE_INST_DIR_V/ve32/src/" - cd "$BASE_INST_DIR_V/ve32/src/LBGenerator" - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + mv "$SCRIPTDIR_V/LBGenerator" "$BASE_INST_DIR_V/lbg_ve32/src/" + cd "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" PG_CFG_F="postgresql://$PG_USER_F:$PG_PWD_F@127.0.0.1/$PG_DB_F" QUESTION_F="Enter the postgresql LBG - LBGenerator configuration. Use empty for \"$PG_CFG_F\"!" @@ -2106,16 +2132,16 @@ Use empty for \"$ES_ESDEF_URL\"!" ES_ESDEF_URL=$GET_USR_INPUT_R fi if [[ "$HTTP_SRV_WSGI" == "u" ]] ; then - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini.uwsgi-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\"" - f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" - f_ez_sed "" "$ES_ESDEF_URL" "$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 - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$APP_ROOT_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + eval "cp -f \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini.uwsgi-dist\" \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini\"" + f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$PG_CFG_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$BASE_INST_DIR_V/lbg_ve32" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$APP_ROOT_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" f_procs_qtt 4 - f_ez_sed "" "$F_PROCS_QTT_R" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$F_PROCS_QTT_R" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" REQ_TIMEOUT=0 f_srv_memory f_bytes_n_units "$F_SRV_MEMORY_R" "KB" "MB" @@ -2141,22 +2167,22 @@ Use empty for \"$REQ_TIMEOUT\"$TOO_LOW_REQ_TIMEOUT if [ -n "$GET_USR_INPUT_R" ] ; then REQ_TIMEOUT=$GET_USR_INPUT_R fi - f_ez_sed "" "$REQ_TIMEOUT" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$REQ_TIMEOUT" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "150" UWSGI_POST_BUFFERING=$F_GET_PERCENT_FROM_R - f_ez_sed "" "$UWSGI_POST_BUFFERING" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$UWSGI_POST_BUFFERING" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "70" UWSGI_RELOAD_ON_AS=$F_GET_PERCENT_FROM_R - f_ez_sed "" "$UWSGI_RELOAD_ON_AS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$UWSGI_RELOAD_ON_AS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "65" UWSGI_RELOAD_ON_RSS=$F_GET_PERCENT_FROM_R - f_ez_sed "" "$UWSGI_RELOAD_ON_RSS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$UWSGI_RELOAD_ON_RSS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "85" UWSGI_EVIL_RELOAD_ON_AS=$F_GET_PERCENT_FROM_R - f_ez_sed "" "$UWSGI_EVIL_RELOAD_ON_AS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$UWSGI_EVIL_RELOAD_ON_AS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "75" UWSGI_EVIL_RELOAD_ON_RSS=$F_GET_PERCENT_FROM_R - f_ez_sed "" "$UWSGI_EVIL_RELOAD_ON_RSS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$UWSGI_EVIL_RELOAD_ON_RSS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!" F_BAK_MD_R=1 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then @@ -2166,13 +2192,17 @@ Use empty for \"$REQ_TIMEOUT\"$TOO_LOW_REQ_TIMEOUT \cp "$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist" "$NGINX_CONF_PATH/lbg.conf" f_ez_sed "" "$HTTP_PORT_A" "$NGINX_CONF_PATH/lbg.conf" f_ez_sed "" "$APP_ROOT_F" "$NGINX_CONF_PATH/lbg.conf" - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "$NGINX_CONF_PATH/lbg.conf" + f_ez_sed "" "$BASE_INST_DIR_V/lbg_ve32" "$NGINX_CONF_PATH/lbg.conf" if [[ "$DISTRO_TYPE" == "DEB" ]] ; then ln -s "$NGINX_CONF_PATH/lbg.conf" "$NGINX_CONF_PATH_E/lbg.conf" &>/dev/null fi fi + + # NOTE: Cria um "virtualenv" exclusivo para o "uWSGI"! By Questor + f_create_ve32 1 "uwsgi_ve32" + f_inst_uwsgi 1 - ln -nsf "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" "$BASE_INST_DIR_V/ve32/src/uWSGI/vassals/lbg.ini" + ln -nsf "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/vassals/lbg.ini" f_svc_helper "nginx" "restart" 1 # TODO: Por alguma razão que eu não consegui entender de jeito @@ -2186,13 +2216,17 @@ Use empty for \"$REQ_TIMEOUT\"$TOO_LOW_REQ_TIMEOUT f_svc_helper "uwsgi" "restart" 1 elif [[ "$HTTP_SRV_WSGI" == "p" ]] ; then - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini.pserver-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\"" - f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" - f_ez_sed "" "$ES_ESDEF_URL" "$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 - f_ez_sed "" "$APP_ROOT_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 + + # TODO: E para pserver para lbg e lba juntos? Como está sendo + # tratado? By Questor + + eval "cp -f \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini.pserver-dist\" \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini\"" + f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$PG_CFG_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$APP_ROOT_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!" F_BAK_MD_R=1 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then @@ -2218,14 +2252,14 @@ Use empty for \"$REQ_TIMEOUT\"$TOO_LOW_REQ_TIMEOUT f_svc_helper "nginx" "restart" 1 f_inst_supervisor 1 elif [[ "$HTTP_SRV_WSGI" == "a" ]] ; then - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/lbgenerator.wsgi-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/lbgenerator.wsgi\"" - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/ve32/src/LBGenerator/lbgenerator.wsgi" - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini.apache-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\"" - f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 - f_ez_sed "" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" - f_ez_sed "" "$ES_ESDEF_URL" "$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 + eval "cp -f \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/lbgenerator.wsgi-dist\" \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/lbgenerator.wsgi\"" + f_ez_sed "" "$BASE_INST_DIR_V/lbg_ve32" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/lbgenerator.wsgi" + eval "cp -f \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini.apache-dist\" \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini\"" + f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 + f_ez_sed "" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" + f_ez_sed "" "$PG_CFG_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1 f_chk_by_path_hlp "$HTTPD_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$HTTPD_CONF_PATH/lbg.conf\"!" F_BAK_MD_R=1 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then @@ -2235,7 +2269,7 @@ Use empty for \"$REQ_TIMEOUT\"$TOO_LOW_REQ_TIMEOUT eval "cp -f \"$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist\" \"$HTTPD_CONF_PATH/lbg.conf\"" f_ez_sed "" "$HTTP_PORT_A" "$HTTPD_CONF_PATH/lbg.conf" f_ez_sed "" "$MOD_WSGI_PATH" "$HTTPD_CONF_PATH/lbg.conf" - f_ez_sed "" "$BASE_INST_DIR_V/ve32" "$HTTPD_CONF_PATH/lbg.conf" 1 + f_ez_sed "" "$BASE_INST_DIR_V/lbg_ve32" "$HTTPD_CONF_PATH/lbg.conf" 1 f_ez_sed "" "$APP_ROOT_F" "$HTTPD_CONF_PATH/lbg.conf" 1 f_ez_sed "" "$VAR_LOG_HTTPD" "$HTTPD_CONF_PATH/lbg.conf" 1 f_ez_sed "" "$HTTPD_USR" "$HTTPD_CONF_PATH/lbg.conf" 1 @@ -2350,7 +2384,7 @@ if [ ${UWSGI_INST} -eq 1 ] ; then $UWSGI_SVC_SYNTAX To configure uWSGI... - vi $BASE_INST_DIR_V/ve32/src/uWSGI/production.ini + vi $BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/production.ini Log... less /var/log/uwsgi.log @@ -2478,13 +2512,13 @@ if [ ${LBG_INST} -eq 1 ] ; then http://$HTTP_URL_PORT/$APP_ROOT_F To configure LBG... - vi $BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini$LBG_LOG + vi $BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini$LBG_LOG python3.2 path... $BASE_INST_DIR_V/py32 python3.2 virtual environment path... - $BASE_INST_DIR_V/ve32 + $BASE_INST_DIR_V/lbg_ve32 " fi diff --git a/lbn-basic-dt-strt/lb_basic_dt_strt.sql b/lbn-basic-dt-strt/lb_basic_dt_strt.sql index 260f1a9..5173174 100755 --- a/lbn-basic-dt-strt/lb_basic_dt_strt.sql +++ b/lbn-basic-dt-strt/lb_basic_dt_strt.sql @@ -82,7 +82,40 @@ ALTER SEQUENCE lb_base_id_base_seq OWNED BY lb_base.id_base; -- --- Name: lb_doc__form; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc__app_config; Type: TABLE; Schema: public; Owner: postgres; Tablespace: +-- + +CREATE TABLE lb_doc__app_config ( + id_doc integer NOT NULL, + document json NOT NULL, + dt_doc timestamp without time zone NOT NULL, + dt_last_up timestamp without time zone NOT NULL, + dt_del timestamp without time zone, + dt_idx timestamp without time zone, + nm_user_alteracao character varying[], + nm_apelido character varying, + nm_aplicacao character varying +); + + +ALTER TABLE lb_doc__app_config OWNER TO postgres; + +-- +-- Name: lb_doc__app_config_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- + +CREATE SEQUENCE lb_doc__app_config_id_doc_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE lb_doc__app_config_id_doc_seq OWNER TO postgres; + +-- +-- Name: lb_doc__form; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_doc__form ( @@ -95,10 +128,10 @@ CREATE TABLE lb_doc__form ( ); -ALTER TABLE lb_doc__form OWNER TO lbu; +ALTER TABLE lb_doc__form OWNER TO postgres; -- --- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu +-- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE lb_doc__form_id_doc_seq @@ -109,7 +142,7 @@ CREATE SEQUENCE lb_doc__form_id_doc_seq CACHE 1; -ALTER TABLE lb_doc__form_id_doc_seq OWNER TO lbu; +ALTER TABLE lb_doc__form_id_doc_seq OWNER TO postgres; -- -- Name: lb_doc__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace: @@ -142,7 +175,39 @@ CREATE SEQUENCE lb_doc__history_id_doc_seq ALTER TABLE lb_doc__history_id_doc_seq OWNER TO postgres; -- --- Name: lb_doc__report; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc__portal; Type: TABLE; Schema: public; Owner: postgres; Tablespace: +-- + +CREATE TABLE lb_doc__portal ( + id_doc integer NOT NULL, + document json NOT NULL, + dt_doc timestamp without time zone NOT NULL, + dt_last_up timestamp without time zone NOT NULL, + dt_del timestamp without time zone, + dt_idx timestamp without time zone, + cpf_user character varying, + nm_portal character varying +); + + +ALTER TABLE lb_doc__portal OWNER TO postgres; + +-- +-- Name: lb_doc__portal_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- + +CREATE SEQUENCE lb_doc__portal_id_doc_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE lb_doc__portal_id_doc_seq OWNER TO postgres; + +-- +-- Name: lb_doc__report; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_doc__report ( @@ -155,10 +220,10 @@ CREATE TABLE lb_doc__report ( ); -ALTER TABLE lb_doc__report OWNER TO lbu; +ALTER TABLE lb_doc__report OWNER TO postgres; -- --- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu +-- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE lb_doc__report_id_doc_seq @@ -169,10 +234,10 @@ CREATE SEQUENCE lb_doc__report_id_doc_seq CACHE 1; -ALTER TABLE lb_doc__report_id_doc_seq OWNER TO lbu; +ALTER TABLE lb_doc__report_id_doc_seq OWNER TO postgres; -- --- Name: lb_doc__search; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc__search; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_doc__search ( @@ -185,10 +250,10 @@ CREATE TABLE lb_doc__search ( ); -ALTER TABLE lb_doc__search OWNER TO lbu; +ALTER TABLE lb_doc__search OWNER TO postgres; -- --- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu +-- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE lb_doc__search_id_doc_seq @@ -199,7 +264,7 @@ CREATE SEQUENCE lb_doc__search_id_doc_seq CACHE 1; -ALTER TABLE lb_doc__search_id_doc_seq OWNER TO lbu; +ALTER TABLE lb_doc__search_id_doc_seq OWNER TO postgres; -- -- Name: lb_doc__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace: @@ -240,7 +305,7 @@ CREATE SEQUENCE lb_doc__user_id_doc_seq ALTER TABLE lb_doc__user_id_doc_seq OWNER TO postgres; -- --- Name: lb_doc_app_user; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc_app_user; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_doc_app_user ( @@ -259,10 +324,10 @@ CREATE TABLE lb_doc_app_user ( ); -ALTER TABLE lb_doc_app_user OWNER TO lbu; +ALTER TABLE lb_doc_app_user OWNER TO postgres; -- --- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu +-- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE lb_doc_app_user_id_doc_seq @@ -273,7 +338,7 @@ CREATE SEQUENCE lb_doc_app_user_id_doc_seq CACHE 1; -ALTER TABLE lb_doc_app_user_id_doc_seq OWNER TO lbu; +ALTER TABLE lb_doc_app_user_id_doc_seq OWNER TO postgres; -- -- Name: lb_doc_log_lbconverter; Type: TABLE; Schema: public; Owner: postgres; Tablespace: @@ -344,7 +409,25 @@ CREATE SEQUENCE lb_doc_log_lbindex_id_doc_seq ALTER TABLE lb_doc_log_lbindex_id_doc_seq OWNER TO postgres; -- --- Name: lb_file__form; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file__app_config; Type: TABLE; Schema: public; Owner: postgres; Tablespace: +-- + +CREATE TABLE lb_file__app_config ( + id_file uuid NOT NULL, + id_doc integer, + filename character varying NOT NULL, + file bytea NOT NULL, + mimetype character varying NOT NULL, + filesize integer NOT NULL, + filetext character varying, + dt_ext_text timestamp without time zone +); + + +ALTER TABLE lb_file__app_config OWNER TO postgres; + +-- +-- Name: lb_file__form; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_file__form ( @@ -359,7 +442,7 @@ CREATE TABLE lb_file__form ( ); -ALTER TABLE lb_file__form OWNER TO lbu; +ALTER TABLE lb_file__form OWNER TO postgres; -- -- Name: lb_file__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace: @@ -380,7 +463,25 @@ CREATE TABLE lb_file__history ( ALTER TABLE lb_file__history OWNER TO postgres; -- --- Name: lb_file__report; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file__portal; Type: TABLE; Schema: public; Owner: postgres; Tablespace: +-- + +CREATE TABLE lb_file__portal ( + id_file uuid NOT NULL, + id_doc integer, + filename character varying NOT NULL, + file bytea NOT NULL, + mimetype character varying NOT NULL, + filesize integer NOT NULL, + filetext character varying, + dt_ext_text timestamp without time zone +); + + +ALTER TABLE lb_file__portal OWNER TO postgres; + +-- +-- Name: lb_file__report; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_file__report ( @@ -395,10 +496,10 @@ CREATE TABLE lb_file__report ( ); -ALTER TABLE lb_file__report OWNER TO lbu; +ALTER TABLE lb_file__report OWNER TO postgres; -- --- Name: lb_file__search; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file__search; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_file__search ( @@ -413,7 +514,7 @@ CREATE TABLE lb_file__search ( ); -ALTER TABLE lb_file__search OWNER TO lbu; +ALTER TABLE lb_file__search OWNER TO postgres; -- -- Name: lb_file__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace: @@ -434,7 +535,7 @@ CREATE TABLE lb_file__user ( ALTER TABLE lb_file__user OWNER TO postgres; -- --- Name: lb_file_app_user; Type: TABLE; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file_app_user; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE lb_file_app_user ( @@ -449,7 +550,7 @@ CREATE TABLE lb_file_app_user ( ); -ALTER TABLE lb_file_app_user OWNER TO lbu; +ALTER TABLE lb_file_app_user OWNER TO postgres; -- -- Name: lb_file_log_lbconverter; Type: TABLE; Schema: public; Owner: postgres; Tablespace: @@ -574,6 +675,7 @@ ALTER TABLE ONLY lb_txt_idx ALTER COLUMN id_idx SET DEFAULT nextval('lb_txt_idx_ -- COPY alembic_version (version_num) FROM stdin; +541f8046f693 \. @@ -582,13 +684,16 @@ COPY alembic_version (version_num) FROM stdin; -- COPY lb_base (id_base, name, struct, dt_base, idx_exp, idx_exp_url, idx_exp_time, file_ext, file_ext_time, txt_mapping) FROM stdin; -4 _user {"content":[{"field":{"alias":"id","description":"LightBase's uses ID","name":"id_user","datatype":"Integer","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"name","description":"User's name","name":"name_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"email","description":"User's mail","name":"email_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"passwd","description":"User's password","name":"passwd_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"group":{"content":[{"field":{"alias":"name_base","description":"Name of the base the user can access","name":"name_base","datatype":"Text","indices":["Textual","Ordenado","Fuzzy"],"required":false,"multivalued":false}},{"field":{"alias":"access_type","description":"Type of access the user has","name":"access_type","datatype":"Text","indices":["Textual","Ordenado"],"required":false,"multivalued":false}}],"metadata":{"alias":"bases","description":"List of bases that the user can access and what kind of access it is","multivalued":true,"name":"bases_user"}}},{"field":{"alias":"creation_date","description":"Date the user account was created","name":"creation_date_user","datatype":"Date","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"status","description":"Check if the user is activer or not","name":"status_user","datatype":"Boolean","indices":["Textual","Ordenado"],"required":true,"multivalued":false}}],"metadata":{"color":"#000000","description":"LightBase's Users Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":4,"name":"_user","password":"","model":{"creation_date_user":"Date","email_user":"Text","id_user":"Integer","name_user":"Text","passwd_user":"Text","status_user":"Boolean","bases_user":[{"access_type":"Text","name_base":"Text"}]}}} 2017-01-01 00:00:00 f 0 f 0 -5 app_user {"content":[{"field":{"name":"id_user","datatype":"Text","required":true,"alias":"id_user","multivalued":false,"indices":["Textual","Ordenado"],"description":"LightBase's uses ID"}},{"field":{"name":"name_user","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's name"}},{"field":{"name":"email_user","datatype":"Text","required":true,"alias":"email","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's mail"}},{"field":{"name":"passwd_user","datatype":"Text","required":true,"alias":"passwd","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's password"}},{"field":{"name":"bases","datatype":"Integer","required":false,"alias":"bases","multivalued":true,"indices":["Textual"],"description":"Id doc list the base the user is owner"}},{"field":{"name":"forms","datatype":"Integer","required":false,"alias":"forms","multivalued":true,"indices":["Textual"],"description":"Id doc list of the form where user can access"}},{"field":{"name":"reports","datatype":"Text","required":false,"alias":"reports","multivalued":true,"indices":["Textual"],"description":"Id doc list of the report where user can access"}},{"group":{"content":[{"field":{"name":"id","datatype":"Integer","required":true,"alias":"id","multivalued":false,"indices":["Textual"],"description":"Id doc of element"}},{"field":{"name":"type","datatype":"Text","required":true,"alias":"type","multivalued":false,"indices":["Textual"],"description":"Types allowed form, base and report"}}],"metadata":{"multivalued":true,"alias":"shortcuts","name":"shortcuts","description":"List of shortcuts of user"}}},{"field":{"name":"creation_date_user","datatype":"Date","required":true,"alias":"creation_date","multivalued":false,"indices":["Textual","Ordenado"],"description":"Date the user account was created"}},{"field":{"name":"status_user","datatype":"Boolean","required":true,"alias":"status","multivalued":false,"indices":["Textual","Ordenado"],"description":"Check if the user is activer or not"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Users Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":5,"name":"app_user","owner":"","password":"","txt_mapping":"","model":{"bases":["Integer"],"creation_date_user":"Date","email_user":"Text","forms":["Integer"],"id_user":"Text","name_user":"Text","passwd_user":"Text","reports":["Text"],"status_user":"Boolean","shortcuts":[{"id":"Integer","type":"Text"}]}}} 2017-01-01 00:00:00 f 0 f 0 -2 _history {"content":[{"field":{"alias":"id_base","description":"Base old ID.","name":"id_base","datatype":"Integer","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"author","description":"Event Author.","name":"author","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"date","description":"Event Date.","name":"date","datatype":"DateTime","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"name","description":"Base old name.","name":"name","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"structure","description":"Base old structure","name":"structure","datatype":"Json","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"status","description":"Base status","name":"status","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - History Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":2,"name":"_history","owner":"","password":"","txt_mapping":"","model":{"author":"Text","date":"DateTime","id_base":"Integer","name":"Text","status":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0 -1 _form {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual"],"description":"Form name."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Form description."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Form structure"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Form Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":1,"name":"_form","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0 -3 _report {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual"],"description":"Report name."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Report description."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Report structure"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Report Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":3,"name":"_report","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0 -7 log_lbindex {"content":[{"field":{"alias":"Nome da base","description":"Nome da base","name":"nm_base","datatype":"Text","indices":["Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"identificador do documento","description":"id do documento que originou o erro.","name":"id_doc_orig","datatype":"Integer","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"Mensagem de erro","description":"Mensagem de erro","name":"error_msg","datatype":"Text","indices":["Nenhum"],"required":true,"multivalued":false}},{"field":{"alias":"Data do erro","description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS do erro","name":"dt_error","datatype":"DateTime","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"dt_last_up_orig","description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS da última atualização do registro que originou o erro.","name":"dt_last_up_orig","datatype":"DateTime","indices":["Textual","Ordenado"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - Log de erros do LBIndex","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":7,"name":"log_lbindex","owner":"","password":"","model":{"dt_error":"DateTime","dt_last_up_orig":"DateTime","error_msg":"Text","id_doc_orig":"Integer","nm_base":"Text"}}} 2017-01-01 00:00:00 f 0 f 0 -6 log_lbconverter {"content":[{"field":{"name":"nm_base","datatype":"Text","required":true,"alias":"Nome da base","multivalued":false,"indices":["Ordenado"],"description":"Nome da base"}},{"field":{"name":"id_doc_orig","datatype":"Integer","required":true,"alias":"id_doc_orig","multivalued":false,"indices":["Textual","Ordenado"],"description":"id do documento que originou o erro."}},{"field":{"name":"id_file_orig","datatype":"Text","required":true,"alias":"id_file_orig","multivalued":false,"indices":["Textual"],"description":"ID do arquivo que originou o erro."}},{"field":{"name":"file_name","datatype":"Text","required":true,"alias":"file_name","multivalued":false,"indices":["Ordenado"],"description":"File name"}},{"field":{"name":"error_msg","datatype":"Text","required":true,"alias":"Mensagem de erro","multivalued":false,"indices":["Nenhum"],"description":"Mensagem de erro"}},{"field":{"name":"dt_error","datatype":"DateTime","required":true,"alias":"Data do erro","multivalued":false,"indices":["Textual","Ordenado"],"description":"Data do erro"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - Log de erros do LBConverter","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":6,"name":"log_lbconverter","owner":"","password":"","txt_mapping":"","model":{"dt_error":"DateTime","error_msg":"Text","file_name":"Text","id_doc_orig":"Integer","id_file_orig":"Text","nm_base":"Text"}}} 2017-01-01 00:00:00 f 0 f 0 +2 _form {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual"],"description":"Form name."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Form description."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Form structure"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Form Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":2,"name":"_form","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0 +3 _history {"content":[{"field":{"alias":"id_base","description":"Base old ID.","name":"id_base","datatype":"Integer","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"author","description":"Event Author.","name":"author","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"date","description":"Event Date.","name":"date","datatype":"DateTime","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"name","description":"Base old name.","name":"name","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"structure","description":"Base old structure","name":"structure","datatype":"Json","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"status","description":"Base status","name":"status","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - History Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":3,"name":"_history","owner":"","password":"","txt_mapping":"","model":{"author":"Text","date":"DateTime","id_base":"Integer","name":"Text","status":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0 +7 _user {"content":[{"field":{"alias":"id","description":"LightBase's uses ID","name":"id_user","datatype":"Integer","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"name","description":"User's name","name":"name_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"email","description":"User's mail","name":"email_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"passwd","description":"User's password","name":"passwd_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"group":{"content":[{"field":{"alias":"name_base","description":"Name of the base the user can access","name":"name_base","datatype":"Text","indices":["Textual","Ordenado","Fuzzy"],"required":false,"multivalued":false}},{"field":{"alias":"access_type","description":"Type of access the user has","name":"access_type","datatype":"Text","indices":["Textual","Ordenado"],"required":false,"multivalued":false}}],"metadata":{"alias":"bases","description":"List of bases that the user can access and what kind of access it is","multivalued":true,"name":"bases_user"}}},{"field":{"alias":"creation_date","description":"Date the user account was created","name":"creation_date_user","datatype":"Date","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"status","description":"Check if the user is activer or not","name":"status_user","datatype":"Boolean","indices":["Textual","Ordenado"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Users Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":7,"name":"_user","owner":"","password":"","txt_mapping":"","model":{"creation_date_user":"Date","email_user":"Text","id_user":"Integer","name_user":"Text","passwd_user":"Text","status_user":"Boolean","bases_user":[{"access_type":"Text","name_base":"Text"}]}}} 2017-01-01 00:00:00 f 0 f 0 +8 app_user {"content":[{"field":{"name":"id_user","datatype":"Text","required":true,"alias":"id_user","multivalued":false,"indices":["Textual","Ordenado"],"description":"LightBase's uses ID"}},{"field":{"name":"name_user","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's name"}},{"field":{"name":"email_user","datatype":"Text","required":true,"alias":"email","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's mail"}},{"field":{"name":"passwd_user","datatype":"Text","required":true,"alias":"passwd","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's password"}},{"field":{"name":"bases","datatype":"Integer","required":false,"alias":"bases","multivalued":true,"indices":["Textual"],"description":"Id doc list the base the user is owner"}},{"field":{"name":"forms","datatype":"Integer","required":false,"alias":"forms","multivalued":true,"indices":["Textual"],"description":"Id doc list of the form where user can access"}},{"field":{"name":"reports","datatype":"Text","required":false,"alias":"reports","multivalued":true,"indices":["Textual"],"description":"Id doc list of the report where user can access"}},{"group":{"content":[{"field":{"name":"id","datatype":"Integer","required":true,"alias":"id","multivalued":false,"indices":["Textual"],"description":"Id doc of element"}},{"field":{"name":"type","datatype":"Text","required":true,"alias":"type","multivalued":false,"indices":["Textual"],"description":"Types allowed form, base and report"}}],"metadata":{"multivalued":true,"alias":"shortcuts","name":"shortcuts","description":"List of shortcuts of user"}}},{"field":{"name":"creation_date_user","datatype":"Date","required":true,"alias":"creation_date","multivalued":false,"indices":["Textual","Ordenado"],"description":"Date the user account was created"}},{"field":{"name":"status_user","datatype":"Boolean","required":true,"alias":"status","multivalued":false,"indices":["Textual","Ordenado"],"description":"Check if the user is activer or not"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Users Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":8,"name":"app_user","owner":"","password":"","txt_mapping":"","model":{"bases":["Integer"],"creation_date_user":"Date","email_user":"Text","forms":["Integer"],"id_user":"Text","name_user":"Text","passwd_user":"Text","reports":["Text"],"status_user":"Boolean","shortcuts":[{"id":"Integer","type":"Text"}]}}} 2017-01-01 00:00:00 f 0 f 0 +9 log_lbconverter {"content":[{"field":{"name":"nm_base","datatype":"Text","required":true,"alias":"Nome da base","multivalued":false,"indices":["Ordenado"],"description":"Nome da base"}},{"field":{"name":"id_doc_orig","datatype":"Integer","required":true,"alias":"id_doc_orig","multivalued":false,"indices":["Textual","Ordenado"],"description":"id do documento que originou o erro."}},{"field":{"name":"id_file_orig","datatype":"Text","required":true,"alias":"id_file_orig","multivalued":false,"indices":["Textual"],"description":"ID do arquivo que originou o erro."}},{"field":{"name":"file_name","datatype":"Text","required":true,"alias":"file_name","multivalued":false,"indices":["Ordenado"],"description":"File name"}},{"field":{"name":"error_msg","datatype":"Text","required":true,"alias":"Mensagem de erro","multivalued":false,"indices":["Nenhum"],"description":"Mensagem de erro"}},{"field":{"name":"dt_error","datatype":"DateTime","required":true,"alias":"Data do erro","multivalued":false,"indices":["Textual","Ordenado"],"description":"Data do erro"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - Log de erros do LBConverter","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":9,"name":"log_lbconverter","owner":"","password":"","txt_mapping":"","model":{"dt_error":"DateTime","error_msg":"Text","file_name":"Text","id_doc_orig":"Integer","id_file_orig":"Text","nm_base":"Text"}}} 2017-01-01 00:00:00 f 0 f 0 +5 _report {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual"],"description":"Report name."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Report description."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Report structure"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Report Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":5,"name":"_report","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0 +10 log_lbindex {"content":[{"field":{"alias":"Nome da base","description":"Nome da base","name":"nm_base","datatype":"Text","indices":["Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"identificador do documento","description":"id do documento que originou o erro.","name":"id_doc_orig","datatype":"Integer","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"Mensagem de erro","description":"Mensagem de erro","name":"error_msg","datatype":"Text","indices":["Nenhum"],"required":true,"multivalued":false}},{"field":{"alias":"Data do erro","description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS do erro","name":"dt_error","datatype":"DateTime","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"dt_last_up_orig","description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS da última atualização do registro que originou o erro.","name":"dt_last_up_orig","datatype":"DateTime","indices":["Textual","Ordenado"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - Log de erros do LBIndex","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":10,"name":"log_lbindex","owner":"","password":"","txt_mapping":"","model":{"dt_error":"DateTime","dt_last_up_orig":"DateTime","error_msg":"Text","id_doc_orig":"Integer","nm_base":"Text"}}} 2017-01-01 00:00:00 f 0 f 0 +6 _search {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID. Identifies the base from which the search was generated."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author. Contains the id of the author, user, who created the search."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"Name","multivalued":false,"indices":["Textual"],"description":"Search name. It is a name that identifies the search."}},{"field":{"name":"type","datatype":"Text","required":true,"alias":"Type","multivalued":false,"indices":["Textual"],"description":"Type search. Identifies what type of search. Initially there are 3 types, general, direct and advanced."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Search description. Explanatory or complementary description to help identify the search."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Search structure. Contains the settings for each search field."}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Search Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":6,"name":"_search","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json","type":"Text"}}} 2017-01-01 00:00:00 f 0 f 0 +4 _portal {"content":[{"field":{"name":"nm_portal","datatype":"Text","required":true,"alias":"Nome do Portal","multivalued":false,"indices":["Textual","Ordenado"],"description":"Contém o nome do portal. Usado para diferenciar os portais."}},{"field":{"name":"alias_portal","datatype":"Text","required":true,"alias":"Apelido do Portal","multivalued":false,"indices":["Textual"],"description":"Este campo informa um apelido, possibilitando exibir um nome amigável."}},{"field":{"name":"ds_portal","datatype":"Text","required":true,"alias":"Descrição","multivalued":false,"indices":["Textual"],"description":"Contém um texto falando sobre o portal. Qual a finalidade do portal criado."}},{"field":{"name":"cpf_user","datatype":"Text","required":false,"alias":"CPF do Usuário","multivalued":false,"indices":["Textual","Ordenado"],"description":"Indica o cpf do usuário que criou o portal. Auxilia a listar os portais de cada usuário"}},{"group":{"content":[{"field":{"name":"nm_base","datatype":"Text","required":true,"alias":"Nome da Base","multivalued":false,"indices":["Textual"],"description":"Contém o nome da base, deve ser o mesmo nome com o qual a base está salva no lightbase. Será usado para auxiliar nas pesquisas feitas pelo portal."}},{"field":{"name":"ds_base","datatype":"Text","required":true,"alias":"Apelido da Base","multivalued":false,"indices":["Textual"],"description":"Este campo informa um apelido, possibilitando exibir um nome amigável no Portal de Pesquisas."}},{"field":{"name":"url_index","datatype":"Url","required":false,"alias":"Url do Indexador","multivalued":false,"indices":["Textual"],"description":"Uma URL que indica o host onde será feita a pesquisa via REST. Pode ser, por exemplo, a URL de um host com o ELastic Search instalado e com os dados indexados."}},{"field":{"name":"url_detail","datatype":"Url","required":false,"alias":"URL de Detalhe","multivalued":false,"indices":["Textual"],"description":"Representa a URL da página de detalhes. O valor é oriundo da aplicação em questão, ou seja, de acordo a aplicação referenciada o nome da página pode ser DetalhesRecebidos.aspx ou DetalhesExpedido.aspx"}},{"field":{"name":"url_app","datatype":"Url","required":false,"alias":"Url da aplicação","multivalued":false,"indices":["Textual"],"description":"Este campo é usado para possibilitar links entre o portal e a aplicação que utiliza esta base, como, por exemplo, abrir os detalhes de um registro pesquisado para abrir na página da aplicação."}},{"field":{"name":"nr_order","datatype":"Integer","required":false,"alias":"Ordem","multivalued":false,"indices":["Textual"],"description":"Auxilia a ordenar as abas no portal de pesquisa."}},{"group":{"content":[{"group":{"content":[{"field":{"name":"nm_display_direct","datatype":"Text","required":false,"alias":"Nome exibido","multivalued":false,"indices":["Textual"],"description":"Contém o nome com o qual o campo deve ser exibido na tela de pesquisa direta."}},{"field":{"name":"in_display_direct","datatype":"Boolean","required":false,"alias":"Exibir?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo deve ser exibido na tela de pesquisa direta."}},{"field":{"name":"nm_type_control_direct","datatype":"Text","required":false,"alias":"Tipo de controle","multivalued":false,"indices":["Textual"],"description":"Define o controle que deve ser carregado para o campo na tela de pesquisa direta."}},{"field":{"name":"nr_position_direct","datatype":"Integer","required":false,"alias":"Posição","multivalued":false,"indices":["Textual"],"description":"Contém um inteiro informando a posição do campo na tela de pesquisa direta."}},{"field":{"name":"script_direct","datatype":"TextArea","required":false,"alias":"script","multivalued":false,"indices":["Textual"],"description":"Contém um script que será executado no momento que o campo for exibido na tela de pesquisa direta."}}],"metadata":{"multivalued":false,"alias":"Informações busca direta","name":"inf_direct_search","description":"Contém informações de como o campo se comporta na tela de busca direta."}}},{"group":{"content":[{"field":{"name":"nm_display_advanced","datatype":"Text","required":false,"alias":"Nome exibido","multivalued":false,"indices":["Textual"],"description":"Contém o nome com o qual o campo deve ser exibido na tela de pesquisa avançada."}},{"field":{"name":"in_display_advanced","datatype":"Boolean","required":false,"alias":"Exibir?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo deve ser exibido na tela de pesquisa avançada."}},{"field":{"name":"in_fixed_advanced","datatype":"Boolean","required":false,"alias":"Campo fixo?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo é fixo na tela de pesquisa avançada. Nesta tela os campo são escolhidos dinamicamente e inseridos como argumento de pesquisa, mas se o campo for fixo ela já fica fixado na tela."}},{"field":{"name":"nm_type_control_advanced","datatype":"Text","required":false,"alias":"Tipo de Controle","multivalued":false,"indices":["Textual"],"description":"Define o controle que deve ser carregado na pesquisa avançada para exibir este campo."}},{"field":{"name":"script_advanced","datatype":"TextArea","required":false,"alias":"script","multivalued":false,"indices":["Textual"],"description":"Contém um script para ser executado na página nome momento em que o campo é exibido."}}],"metadata":{"multivalued":false,"alias":"Informações pesquisa avançada","name":"inf_advanced_search","description":"Contém informações que definem como o campo se comporta na tela de pesquisa avançada."}}},{"group":{"content":[{"field":{"name":"nm_display_listed","datatype":"Text","required":false,"alias":"Nome exibido","multivalued":false,"indices":["Textual"],"description":"Contém o nome que deve exibido na coluna da tabela resultado de pesquisa."}},{"field":{"name":"in_select_listed","datatype":"Boolean","required":false,"alias":"Recuperar?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo deve ser selecionado no resultado de pesquisa, ou seja, recuperado nas consultas."}},{"field":{"name":"in_display_listed","datatype":"Boolean","required":false,"alias":"Exibir?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo deve ser exibido no resultado de pesquisa"}},{"field":{"name":"in_search_listed","datatype":"Boolean","required":false,"alias":"Pesquisar?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo é usado na pesquisa. Essa informação é relevante para a pesquisa direta, que realiza a busca nos campos que contém essa flag marcada com true."}},{"field":{"name":"nr_position_listed","datatype":"Integer","required":false,"alias":"Posição","multivalued":false,"indices":["Textual"],"description":"Defina a posição da coluna na tabela de resultado de pesquisa."}},{"field":{"name":"script_listed","datatype":"TextArea","required":false,"alias":"script","multivalued":false,"indices":["Textual"],"description":"Contém um script que será executado na exibição do campo na tabela de resultado de pesquisa. É útil para criar botões, links, etc."}},{"field":{"name":"in_sortable_listed","datatype":"Boolean","required":false,"alias":"Ordenar?","multivalued":false,"indices":["Textual"],"description":"Indica se a coluna é ordenável na tabela do resultado de pesquisa."}}],"metadata":{"multivalued":false,"alias":"Informações resultado de pesquisa","name":"inf_listed_search","description":"Contém as informações do campo de como se comportar na pesquisa listada."}}},{"group":{"content":[{"field":{"name":"nm_display_detailed","datatype":"Text","required":false,"alias":"Nome exibido","multivalued":false,"indices":["Textual"],"description":"contém o nome com o qual o campo deve ser exibido na tela de detalhes."}},{"field":{"name":"in_display_detailed","datatype":"Boolean","required":false,"alias":"Exibir?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag dizendo se o campo é exibido ou não tela de detalhes."}},{"field":{"name":"in_search_detailed","datatype":"Boolean","required":false,"alias":"Pesquisar?","multivalued":false,"indices":["Textual"],"description":"Contém uma flag informando se o campo é pesquisado para chamar a página de detalhes."}},{"field":{"name":"nr_position_detailed","datatype":"Integer","required":false,"alias":"Posição","multivalued":false,"indices":["Textual"],"description":"Contém um inteiro informando a posição do campo na tela de detalhes."}},{"field":{"name":"script_detailed","datatype":"TextArea","required":false,"alias":"Script","multivalued":false,"indices":["Textual"],"description":"Contém um script que deve ser executado na exibição do campo na página de detalhes. Por exemplo, criar um link dentro campo."}}],"metadata":{"multivalued":false,"alias":"Informações da tela de detalhes","name":"inf_detailed_search","description":"Contém as informações de como o campo se comporta na tela de detalhes. Caso esta tela seja tratada no portal, pois ela pode ser de outra aplicação e neste caso usasse o campo url_detail."}}},{"group":{"content":[{"field":{"name":"data_tabulated","datatype":"Json","required":false,"alias":"Lista de dados","multivalued":false,"indices":["Textual"],"description":"Contém uma lista de objetos json. Serve para criar uma tabela estática com os campo tabelados. Por exemplo, uma tabela de siglas e nomes de estados."}},{"field":{"name":"nm_field_value_tabulated","datatype":"Text","required":false,"alias":"Nome do campo valor","multivalued":false,"indices":["Textual"],"description":"Contém o nome do campo da base referenciada que contém o valor."}},{"field":{"name":"nm_field_key_tabulated","datatype":"Text","required":false,"alias":"Nome Campo Chave","multivalued":false,"indices":["Textual"],"description":"Contém o nome do campo da base referenciada que contém a chave do valor."}},{"field":{"name":"relational_key_tabulated","datatype":"Text","required":false,"alias":"Chave relacional","multivalued":false,"indices":["Textual"],"description":"Contém o nome da coluna que contém a chave da relação. É o campo referenciado na base."}},{"field":{"name":"nm_table_tabulated","datatype":"Text","required":false,"alias":"Nome da tabela referenciada","multivalued":false,"indices":["Textual"],"description":"Contém o nome da tabela que está sendo usada para tabelar o campo."}}],"metadata":{"multivalued":false,"alias":"Informações Campo Tabelado","name":"inf_field_tabulated","description":"Define as informações de campos tabelados. Só precisa ser preenchido se o tipo de campo for igual a tabulated."}}},{"field":{"name":"groups_can_view","datatype":"Text","required":false,"alias":"Grupos","multivalued":true,"indices":["Textual"],"description":"Define os grupos que podem visualizar o campo."}},{"field":{"name":"ds_field","datatype":"Text","required":false,"alias":"Apelido do campo","multivalued":false,"indices":["Textual"],"description":"Define o apelido do campo. É um nome mais amigável para ser exibido no portal."}},{"field":{"name":"nm_field","datatype":"Text","required":true,"alias":"Nome do campo","multivalued":false,"indices":["Textual"],"description":"Nome do campo da base. Deve coincidir com o nome do campo que está salvo no lightbase."}},{"field":{"name":"nm_type_field","datatype":"Text","required":true,"alias":"Tipo de campo","multivalued":false,"indices":["Textual"],"description":"Indica qual o tipo de campo. É utilizado pelo portal para saber como exibir o campo. É oriundo dos tipos de campo que o lightbase usa para criar campos."}}],"metadata":{"multivalued":true,"alias":"Campo","name":"field","description":"Representa os campos da base. Informa onde e como serão usados pelo portal."}}}],"metadata":{"multivalued":true,"alias":"Bases do Portal","name":"bases","description":"Contém as Bases do portal."}}}],"metadata":{"admin_users":[],"color":"#000000","description":"Novo conceito do portal. Uma base _portal lista todos os portais separados por nome e com o id do usu-ario que criou.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":4,"name":"_portal","owner":"","password":"","txt_mapping":"","model":{"alias_portal":"Text","cpf_user":"Text","ds_portal":"Text","nm_portal":"Text","bases":[{"ds_base":"Text","nm_base":"Text","nr_order":"Integer","url_app":"Url","url_detail":"Url","url_index":"Url","field":[{"ds_field":"Text","groups_can_view":["Text"],"nm_field":"Text","nm_type_field":"Text","inf_advanced_search":{"in_fixed_advanced":"Boolean","in_display_advanced":"Boolean","nm_type_control_advanced":"Text","nm_display_advanced":"Text","script_advanced":"TextArea"},"inf_detailed_search":{"nm_display_detailed":"Text","in_search_detailed":"Boolean","in_display_detailed":"Boolean","script_detailed":"TextArea","nr_position_detailed":"Integer"},"inf_direct_search":{"nr_position_direct":"Integer","nm_display_direct":"Text","script_direct":"TextArea","nm_type_control_direct":"Text","in_display_direct":"Boolean"},"inf_field_tabulated":{"nm_table_tabulated":"Text","nm_field_key_tabulated":"Text","relational_key_tabulated":"Text","data_tabulated":"Json","nm_field_value_tabulated":"Text"},"inf_listed_search":{"in_search_listed":"Boolean","nm_display_listed":"Text","in_select_listed":"Boolean","in_sortable_listed":"Boolean","nr_position_listed":"Integer","script_listed":"TextArea","in_display_listed":"Boolean"}}]}]}}} 2017-01-01 00:00:00 f 0 f 0 +1 _app_config {"content":[{"field":{"name":"nm_aplicacao","datatype":"Text","required":false,"alias":"Aplicação","multivalued":false,"indices":["Textual","Ordenado"],"description":"Define o nome da aplicação"}},{"field":{"name":"nm_apelido","datatype":"Text","required":false,"alias":"nm_apelido","multivalued":false,"indices":["Textual","Ordenado"],"description":"Apelido da aplicação. Campo usado para identificar à qual aplicação o config pertence ou de qual aplicação. Oriundo da tabela Aplicação nm_apelido."}},{"group":{"content":[{"field":{"name":"manual","datatype":"File","required":false,"alias":"manual","multivalued":false,"indices":["Textual"],"description":"Manuais"}},{"field":{"name":"ch_manual","datatype":"Text","required":true,"alias":"Chave do manual","multivalued":false,"indices":["Textual"],"description":"Chave para tornar única a identificação de cada manual."}},{"field":{"name":"nm_manual","datatype":"Text","required":true,"alias":"Nome do manual","multivalued":false,"indices":["Textual"],"description":"Nome do manual"}},{"field":{"name":"color","datatype":"Text","required":false,"alias":"Cor","multivalued":false,"indices":["Textual"],"description":"Cor na qual aparece para download"}},{"group":{"content":[{"field":{"name":"nr_cpf_user_alteracao","datatype":"Text","required":false,"alias":"Número do CPF do usuário da alteração","multivalued":false,"indices":["Textual"],"description":"Número do CPF do usuário da ultima alteração. Campo usado para informar o cpf do usuário que fez a ultima alteração."}},{"field":{"name":"dt_alteracao","datatype":"DateTime","required":false,"alias":"Data e hora da alteração","multivalued":false,"indices":["Textual"],"description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS . Campo usado para informar a data e hora da alteração."}},{"field":{"name":"nm_user_alteracao","datatype":"Text","required":false,"alias":"Nome do usuário da alteração","multivalued":false,"indices":["Textual","Ordenado"],"description":"Nome do usuário da alteração. Campo usado para informar o nome do usuário que fez a alteração."}}],"metadata":{"multivalued":true,"alias":"Alteração","name":"alteracao","description":"Alteração"}}},{"group":{"content":[{"field":{"name":"nr_cpf_user_inclusao","datatype":"Text","required":false,"alias":"Número do CPF do usuário que incluiu.","multivalued":false,"indices":["Textual"],"description":"Número do CPF do usuário que incluiu. Campo usado para informar o cpf do usuário que fez a inclusão do registro."}},{"field":{"name":"dt_inclusao","datatype":"Text","required":false,"alias":"Data e Hora da inclusão","multivalued":false,"indices":["Textual"],"description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS de inclusão do usuário no Cadastro. Campo usado para informar a data que o usuário foi incluído."}},{"field":{"name":"nm_user_inclusao","datatype":"Text","required":false,"alias":"Nome do usuário que incluiu","multivalued":false,"indices":["Textual"],"description":"Nome do usuário que incluiu. Campo usado para informar o nome do usuário que realizou a inclusão do usuário."}}],"metadata":{"multivalued":false,"alias":"Inclusão","name":"inclusao","description":"Inclusão"}}}],"metadata":{"multivalued":true,"alias":"Manuais","name":"manuais","description":"Manuais"}}}],"metadata":{"admin_users":[],"color":"#000000","description":"Configurações da aplicação","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":1,"name":"_app_config","owner":"","password":"","txt_mapping":"","model":{"nm_apelido":"Text","nm_aplicacao":"Text","manuais":[{"ch_manual":"Text","color":"Text","manual":"File","nm_manual":"Text","alteracao":[{"dt_alteracao":"DateTime","nm_user_alteracao":"Text","nr_cpf_user_alteracao":"Text"}],"inclusao":{"dt_inclusao":"Text","nm_user_inclusao":"Text","nr_cpf_user_inclusao":"Text"}}]}}} 2017-01-01 00:00:00 f 0 f 0 \. @@ -596,11 +701,26 @@ COPY lb_base (id_base, name, struct, dt_base, idx_exp, idx_exp_url, idx_exp_time -- Name: lb_base_id_base_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- -SELECT pg_catalog.setval('lb_base_id_base_seq', 7, true); +SELECT pg_catalog.setval('lb_base_id_base_seq', 10, true); -- --- Data for Name: lb_doc__form; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_doc__app_config; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +COPY lb_doc__app_config (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, nm_user_alteracao, nm_apelido, nm_aplicacao) FROM stdin; +\. + + +-- +-- Name: lb_doc__app_config_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('lb_doc__app_config_id_doc_seq', 1, false); + + +-- +-- Data for Name: lb_doc__form; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_doc__form (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin; @@ -608,7 +728,7 @@ COPY lb_doc__form (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM st -- --- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu +-- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('lb_doc__form_id_doc_seq', 1, false); @@ -626,11 +746,26 @@ COPY lb_doc__history (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM -- Name: lb_doc__history_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- -SELECT pg_catalog.setval('lb_doc__history_id_doc_seq', 1134, true); +SELECT pg_catalog.setval('lb_doc__history_id_doc_seq', 1, false); + + +-- +-- Data for Name: lb_doc__portal; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +COPY lb_doc__portal (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, cpf_user, nm_portal) FROM stdin; +\. + + +-- +-- Name: lb_doc__portal_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('lb_doc__portal_id_doc_seq', 1, false); -- --- Data for Name: lb_doc__report; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_doc__report; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_doc__report (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin; @@ -638,14 +773,14 @@ COPY lb_doc__report (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM -- --- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu +-- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('lb_doc__report_id_doc_seq', 1, false); -- --- Data for Name: lb_doc__search; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_doc__search; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_doc__search (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin; @@ -653,7 +788,7 @@ COPY lb_doc__search (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM -- --- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu +-- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('lb_doc__search_id_doc_seq', 1, false); @@ -671,11 +806,11 @@ COPY lb_doc__user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, name_ba -- Name: lb_doc__user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- -SELECT pg_catalog.setval('lb_doc__user_id_doc_seq', 1, true); +SELECT pg_catalog.setval('lb_doc__user_id_doc_seq', 1, false); -- --- Data for Name: lb_doc_app_user; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_doc_app_user; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_doc_app_user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, id_user, status_user, name_user, creation_date_user, email_user, passwd_user) FROM stdin; @@ -683,7 +818,7 @@ COPY lb_doc_app_user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, id_u -- --- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu +-- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('lb_doc_app_user_id_doc_seq', 1, false); @@ -701,7 +836,7 @@ COPY lb_doc_log_lbconverter (id_doc, document, dt_doc, dt_last_up, dt_del, dt_id -- Name: lb_doc_log_lbconverter_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- -SELECT pg_catalog.setval('lb_doc_log_lbconverter_id_doc_seq', 481444, true); +SELECT pg_catalog.setval('lb_doc_log_lbconverter_id_doc_seq', 1, false); -- @@ -716,11 +851,19 @@ COPY lb_doc_log_lbindex (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, i -- Name: lb_doc_log_lbindex_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- -SELECT pg_catalog.setval('lb_doc_log_lbindex_id_doc_seq', 620125, true); +SELECT pg_catalog.setval('lb_doc_log_lbindex_id_doc_seq', 1, false); -- --- Data for Name: lb_file__form; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_file__app_config; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +COPY lb_file__app_config (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; +\. + + +-- +-- Data for Name: lb_file__form; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_file__form (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; @@ -736,7 +879,15 @@ COPY lb_file__history (id_file, id_doc, filename, file, mimetype, filesize, file -- --- Data for Name: lb_file__report; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_file__portal; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +COPY lb_file__portal (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; +\. + + +-- +-- Data for Name: lb_file__report; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_file__report (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; @@ -744,7 +895,7 @@ COPY lb_file__report (id_file, id_doc, filename, file, mimetype, filesize, filet -- --- Data for Name: lb_file__search; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_file__search; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_file__search (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; @@ -760,7 +911,7 @@ COPY lb_file__user (id_file, id_doc, filename, file, mimetype, filesize, filetex -- --- Data for Name: lb_file_app_user; Type: TABLE DATA; Schema: public; Owner: lbu +-- Data for Name: lb_file_app_user; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY lb_file_app_user (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; @@ -795,7 +946,7 @@ COPY lb_index_error (id_error, base, id_doc, dt_error, msg_error) FROM stdin; -- Name: lb_index_error_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- -SELECT pg_catalog.setval('lb_index_error_seq', 3699, true); +SELECT pg_catalog.setval('lb_index_error_seq', 1, false); -- @@ -830,7 +981,15 @@ ALTER TABLE ONLY lb_base -- --- Name: lb_doc__form_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc__app_config_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: +-- + +ALTER TABLE ONLY lb_doc__app_config + ADD CONSTRAINT lb_doc__app_config_pkey PRIMARY KEY (id_doc); + + +-- +-- Name: lb_doc__form_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_doc__form @@ -846,7 +1005,15 @@ ALTER TABLE ONLY lb_doc__history -- --- Name: lb_doc__report_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc__portal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: +-- + +ALTER TABLE ONLY lb_doc__portal + ADD CONSTRAINT lb_doc__portal_pkey PRIMARY KEY (id_doc); + + +-- +-- Name: lb_doc__report_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_doc__report @@ -854,7 +1021,7 @@ ALTER TABLE ONLY lb_doc__report -- --- Name: lb_doc__search_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc__search_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_doc__search @@ -870,7 +1037,7 @@ ALTER TABLE ONLY lb_doc__user -- --- Name: lb_doc_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_doc_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_doc_app_user @@ -894,7 +1061,15 @@ ALTER TABLE ONLY lb_doc_log_lbindex -- --- Name: lb_file__form_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file__app_config_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: +-- + +ALTER TABLE ONLY lb_file__app_config + ADD CONSTRAINT lb_file__app_config_pkey PRIMARY KEY (id_file); + + +-- +-- Name: lb_file__form_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_file__form @@ -910,7 +1085,15 @@ ALTER TABLE ONLY lb_file__history -- --- Name: lb_file__report_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file__portal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: +-- + +ALTER TABLE ONLY lb_file__portal + ADD CONSTRAINT lb_file__portal_pkey PRIMARY KEY (id_file); + + +-- +-- Name: lb_file__report_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_file__report @@ -918,7 +1101,7 @@ ALTER TABLE ONLY lb_file__report -- --- Name: lb_file__search_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file__search_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_file__search @@ -934,7 +1117,7 @@ ALTER TABLE ONLY lb_file__user -- --- Name: lb_file_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: +-- Name: lb_file_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY lb_file_app_user diff --git a/liblightbase.tar.gz b/liblightbase.tar.gz index 7062ddb..e275adf 100644 Binary files a/liblightbase.tar.gz and b/liblightbase.tar.gz differ diff --git a/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist b/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist index 6aaf2a0..f9cefe5 100755 --- a/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist +++ b/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist @@ -1,4 +1,4 @@ -# Use only 1 Python sub-interpreter. Multiple sub-interpreters +# Use only 1 Python sub-interpreter. Multiple sub-interpreters # play badly with C extensions. Listen @@ -12,10 +12,10 @@ ServerName 127.0.0.1 WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On -WSGIDaemonProcess user= group= threads=8 python-path=/lib/python3.2/site-packages -WSGIScriptAlias / /src/LBGenerator/lbgenerator.wsgi +WSGIDaemonProcess user= group= threads=8 python-path=/lib/python3.2/site-packages +WSGIScriptAlias / /src/LBGenerator/lbgenerator.wsgi -> +> WSGIProcessGroup diff --git a/other-srcs-n-apps/lbg.conf-ngix-pserve-dist b/other-srcs-n-apps/lbg.conf-ngix-pserve-dist index aa56776..1d34c41 100755 --- a/other-srcs-n-apps/lbg.conf-ngix-pserve-dist +++ b/other-srcs-n-apps/lbg.conf-ngix-pserve-dist @@ -11,7 +11,7 @@ server { # Do not log problems with the "favicon.ico". location = /favicon.ico { access_log off; log_not_found off; } - access_log /var/log/nginx/lbgenerator-access.log; + access_log /var/log/nginx/lbg-access.log; location / { proxy_set_header Host $http_host; diff --git a/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist b/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist index ff5d007..216f5f7 100755 --- a/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist +++ b/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist @@ -8,7 +8,7 @@ server { # Do not log problems with the "favicon.ico". location = /favicon.ico { access_log off; log_not_found off; } - access_log /var/log/nginx/lbgenerator-access.log; + access_log /var/log/nginx/lbg-access.log; location / { add_header uWSGI $upstream_addr; diff --git a/other-srcs-n-apps/lbg.conf-supervisord-dist b/other-srcs-n-apps/lbg.conf-supervisord-dist index 2711e91..1e9d8d1 100755 --- a/other-srcs-n-apps/lbg.conf-supervisord-dist +++ b/other-srcs-n-apps/lbg.conf-supervisord-dist @@ -1,9 +1,8 @@ [program:lbgenerator] autorestart=true -command=/bin/pserve /src/LBGenerator/production.ini http_port=50%(process_num)02d +command=/bin/pserve /src/LBGenerator/production.ini http_port=50%(process_num)02d process_name=%(program_name)s-%(process_num)01d numprocs= numprocs_start=0 redirect_stderr=true stdout_logfile=/var/log/%(program_name)s-%(process_num)01d.log - diff --git a/other-srcs-n-apps/production.ini.uwsgi.srv-dist b/other-srcs-n-apps/production.ini.uwsgi.srv-dist index 96b611e..1ba29b9 100755 --- a/other-srcs-n-apps/production.ini.uwsgi.srv-dist +++ b/other-srcs-n-apps/production.ini.uwsgi.srv-dist @@ -1,5 +1,5 @@ [uwsgi] -emperor=/src/uWSGI/vassals +emperor=/src/uWSGI/vassals # NOTE: Embora esses usuários estejam criados eles são problemáticos. Então # preferimos manter o usuário que inicia o serviço (seja de sistema ou não)! diff --git a/other-srcs-n-apps/supervisord-SLES-dist b/other-srcs-n-apps/supervisord-SLES-dist index 28b4299..b2f4c20 100755 --- a/other-srcs-n-apps/supervisord-SLES-dist +++ b/other-srcs-n-apps/supervisord-SLES-dist @@ -27,7 +27,6 @@ ulimit -n 96000 RETVAL=0 - running_pid() { # Check if a given process pid's cmdline matches a given name. diff --git a/other-srcs-n-apps/uwsgi-DEB-dist b/other-srcs-n-apps/uwsgi-DEB-dist index 29cda3c..51ddd25 100755 --- a/other-srcs-n-apps/uwsgi-DEB-dist +++ b/other-srcs-n-apps/uwsgi-DEB-dist @@ -10,7 +10,7 @@ PATH=/opt/uwsgi:/sbin:/bin:/usr/sbin:/usr/bin -DAEMON="/bin/uwsgi" +DAEMON="/bin/uwsgi" NAME=uwsgi DESC=uwsgi @@ -23,7 +23,7 @@ fi set -e -DAEMON_OPTS="--ini /src/uWSGI/production.ini" +DAEMON_OPTS="--ini /src/uWSGI/production.ini" case "$1" in start) diff --git a/other-srcs-n-apps/uwsgi-RHEL-dist b/other-srcs-n-apps/uwsgi-RHEL-dist index 12d037c..b2e5e53 100755 --- a/other-srcs-n-apps/uwsgi-RHEL-dist +++ b/other-srcs-n-apps/uwsgi-RHEL-dist @@ -12,10 +12,10 @@ # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 -uwsgi="/bin/uwsgi" +uwsgi="/bin/uwsgi" prog=$(basename $uwsgi) -UWSGI_CONF_FILE="/src/uWSGI/production.ini" +UWSGI_CONF_FILE="/src/uWSGI/production.ini" lockfile=/var/run/uwsgi.lock pidfile=/var/run/uwsgi.pid diff --git a/other-srcs-n-apps/uwsgi-SLES-dist b/other-srcs-n-apps/uwsgi-SLES-dist index 9d01453..91daedb 100755 --- a/other-srcs-n-apps/uwsgi-SLES-dist +++ b/other-srcs-n-apps/uwsgi-SLES-dist @@ -3,8 +3,8 @@ # description: Use uwsgi to run python and wsgi web apps. # processname: uwsgi -UWSGI_BIN="/bin/uwsgi" -UWSGI_OPTIONS="--ini /src/uWSGI/production.ini" +UWSGI_BIN="/bin/uwsgi" +UWSGI_OPTIONS="--ini /src/uWSGI/production.ini" test -x $UWSGI_BIN || { echo "$UWSGI_BIN not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } diff --git a/py-packs-LBGenerator.bash b/py-packs-LBGenerator.bash index 3bb9143..62b1470 100755 --- a/py-packs-LBGenerator.bash +++ b/py-packs-LBGenerator.bash @@ -44,121 +44,121 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then tar -zxvf ./SQLAlchemy-0.9.4.tar.gz cd ./SQLAlchemy-0.9.4 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./SQLAlchemy-0.9.4 tar -zxvf ./Mako-1.0.1.tar.gz cd ./Mako-1.0.1 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./Mako-1.0.1 tar -zxvf ./alembic-0.6.7.tar.gz cd ./alembic-0.6.7 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./alembic-0.6.7 tar -zxvf ./Beaker-1.7.0.tar.gz cd ./Beaker-1.7.0 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./Beaker-1.7.0 tar -zxvf ./PasteDeploy-1.5.2.tar.gz cd ./PasteDeploy-1.5.2 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./PasteDeploy-1.5.2 tar -zxvf ./psycopg2-2.5.3.tar.gz cd ./psycopg2-2.5.3 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./psycopg2-2.5.3 tar -zxvf ./WebOb-1.4.tar.gz cd ./WebOb-1.4 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./WebOb-1.4 tar -zxvf ./translationstring-1.1.tar.gz cd ./translationstring-1.1 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./translationstring-1.1 tar -zxvf ./venusian-1.0a8.tar.gz cd ./venusian-1.0a8 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./venusian-1.0a8 tar -zxvf ./waitress-0.8.9.tar.gz cd ./waitress-0.8.9 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./waitress-0.8.9 tar -zxvf ./zope.deprecation-4.1.1.tar.gz cd ./zope.deprecation-4.1.1 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./zope.deprecation-4.1.1 tar -zxvf ./zope.interface-4.1.1.tar.gz cd ./zope.interface-4.1.1 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./zope.interface-4.1.1 tar -zxvf ./repoze.lru-0.6.tar.gz cd ./repoze.lru-0.6 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./repoze.lru-0.6 tar -zxvf ./pyramid-1.5.1.tar.gz cd ./pyramid-1.5.1 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./pyramid-1.5.1 tar -zxvf ./pyramid_beaker-0.8.tar.gz cd ./pyramid_beaker-0.8 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./pyramid_beaker-0.8 tar -zxvf ./pyramid_restler-0.1a4.tar.gz cd ./pyramid_restler-0.1a4 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./pyramid_restler-0.1a4 tar -zxvf ./requests-2.3.0.tar.gz cd ./requests-2.3.0 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./requests-2.3.0 tar -zxvf ./voluptuous-0.8.7.tar.gz cd ./voluptuous-0.8.7 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./voluptuous-0.8.7 tar -zxvf ./Pympler-0.4.3.tar.gz cd ./Pympler-0.4.3 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./Pympler-0.4.3 tar -zxvf ./repoze.profile-2.2.tar.gz cd ./repoze.profile-2.2 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./repoze.profile-2.2 diff --git a/py-packs-liblightbase.bash b/py-packs-liblightbase.bash index 01ec394..ca49925 100755 --- a/py-packs-liblightbase.bash +++ b/py-packs-liblightbase.bash @@ -44,43 +44,43 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then tar -zxvf ./decorator-3.4.0.tar.gz cd ./decorator-3.4.0 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./decorator-3.4.0 tar -zxvf ./six-1.7.2.tar.gz cd ./six-1.7.2 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./six-1.7.2 tar -zxvf ./ply-3.4.tar.gz cd ./ply-3.4 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./ply-3.4 tar -zxvf ./jsonpath-rw-1.3.0.tar.gz cd ./jsonpath-rw-1.3.0 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./jsonpath-rw-1.3.0 tar -zxvf ./python-dateutil-2.2.tar.gz cd ./python-dateutil-2.2 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./python-dateutil-2.2 tar -zxvf ./requests-2.3.0.tar.gz cd ./requests-2.3.0 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./requests-2.3.0 tar -zxvf ./voluptuous-0.8.7.tar.gz cd ./voluptuous-0.8.7 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./voluptuous-0.8.7 diff --git a/py-packs-supervisor.bash b/py-packs-supervisor.bash index 2c481ca..4934d05 100755 --- a/py-packs-supervisor.bash +++ b/py-packs-supervisor.bash @@ -37,7 +37,7 @@ fi VE_2_X=$4 if [ -z "$VE_2_X" ] ; then - VE_2_X="ve26" + VE_2_X="lbg_ve26" fi f_open_section diff --git a/py-packs-uwsgi.bash b/py-packs-uwsgi.bash index 5cf934e..eeb4d79 100755 --- a/py-packs-uwsgi.bash +++ b/py-packs-uwsgi.bash @@ -44,7 +44,7 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then tar -zxvf ./uwsgi-2.0.13.1.tar.gz cd ./uwsgi-2.0.13.1 - eval "CFLAGS=\"-Wno-format\" $BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" + eval "CFLAGS=\"-Wno-format\" $BASE_INST_DIR_V/uwsgi_ve32/bin/python3.2 setup.py install" cd .. rm -rf ./uwsgi-2.0.13.1 diff --git a/tux.txt b/tux.txt new file mode 100755 index 0000000..2af89bd --- /dev/null +++ b/tux.txt @@ -0,0 +1,7 @@ + + + .~. Have fun! =D + /V\ + // \\ Tux +/( )\ + ^`~'^ \ No newline at end of file -- libgit2 0.21.2