Commit 4493866aa59ff67600c01f60ce1dd24c34e9af2a

Authored by edulucio
1 parent ce6d5ddd
Exists in master

Correções diversas! By Questor

LBGenerator.tar.gz
No preview for this file type
@@ -441,7 +441,7 @@ f_chk_by_path_hlp() { @@ -441,7 +441,7 @@ f_chk_by_path_hlp() {
441 VER_TYPE_P (str): Se o caminho físico é para um diretório ("d") 441 VER_TYPE_P (str): Se o caminho físico é para um diretório ("d")
442 ou arquivo ("f"). 442 ou arquivo ("f").
443 EXIST_MSG_P (Optional[str]): Mensagem a ser "printada" caso o 443 EXIST_MSG_P (Optional[str]): Mensagem a ser "printada" caso o
444 - aplicativo/pacote/arquivo exista. Se não informado ou vazio não 444 + aplicativo/pacote/arquivo/pasta exista. Se não informado ou vazio não
445 exibe a mensagem. 445 exibe a mensagem.
446 SKIP_MSG_P (Optional[int]): Não exibir mensagem. 446 SKIP_MSG_P (Optional[int]): Não exibir mensagem.
447 447
@@ -663,9 +663,9 @@ f_yes_no() { @@ -663,9 +663,9 @@ f_yes_no() {
663 eval "read -e -t$WAIT_UNTIL_P -r -p \"$QUESTION_P (y/n) (\"$AUT_ANSWER\" in $WAIT_UNTIL_P seconds) \" RESP_V" || echo "" 663 eval "read -e -t$WAIT_UNTIL_P -r -p \"$QUESTION_P (y/n) (\"$AUT_ANSWER\" in $WAIT_UNTIL_P seconds) \" RESP_V" || echo ""
664 664
665 fi 665 fi
666 - if [[ $RESP_V =~ ^([sS]|[yY])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 1 ] && [ -z "$RESP_V" ] ) ; then 666 + if [[ $RESP_V =~ ^([sS]|[yY])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 1 ] && [ -z "$RESP_V" ] && [ -n "$WAIT_UNTIL_P" ] ) ; then
667 YES_NO_R=1 667 YES_NO_R=1
668 - elif [[ $RESP_V =~ ^([nN])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 0 ] && [ -z "$RESP_V" ] ) ; then 668 + elif [[ $RESP_V =~ ^([nN])$ ]] || ( [ ${WAIT_UNTIL_RTN_P} -eq 0 ] && [ -z "$RESP_V" ] && [ -n "$WAIT_UNTIL_P" ] ) ; then
669 if [ -n "$RESP_V" ] ; then 669 if [ -n "$RESP_V" ] ; then
670 echo "NO!" 670 echo "NO!"
671 fi 671 fi
@@ -24,18 +24,16 @@ read -d '' TITLE_F <<"EOF" @@ -24,18 +24,16 @@ read -d '' TITLE_F <<"EOF"
24 LBG - LBGenerator Installer 24 LBG - LBGenerator Installer
25 EOF 25 EOF
26 26
27 -read -d '' VERSION_F <<"EOF"  
28 -0.8.0.0  
29 -EOF  
30 -  
31 # NOTE: Para versionamento usar "MAJOR.MINOR.REVISION.BUILDNUMBER"! 27 # NOTE: Para versionamento usar "MAJOR.MINOR.REVISION.BUILDNUMBER"!
32 # Usar a mesma versão contida no setup.py! By Questor 28 # Usar a mesma versão contida no setup.py! By Questor
33 # http://programmers.stackexchange.com/questions/24987/what-exactly-is-the-build-number-in-major-minor-buildnumber-revision 29 # http://programmers.stackexchange.com/questions/24987/what-exactly-is-the-build-number-in-major-minor-buildnumber-revision
34 30
  31 +read -d '' VERSION_F <<"EOF"
  32 +0.8.0.0
  33 +EOF
  34 +
35 read -d '' ABOUT_F <<"EOF" 35 read -d '' ABOUT_F <<"EOF"
36 This script will install LBG - LBGenerator the LightBase data specification and model! 36 This script will install LBG - LBGenerator the LightBase data specification and model!
37 -  
38 -Have fun! =D  
39 EOF 37 EOF
40 38
41 read -d '' WARNINGS_F <<"EOF" 39 read -d '' WARNINGS_F <<"EOF"
@@ -64,11 +62,12 @@ EOF @@ -64,11 +62,12 @@ EOF
64 62
65 read -d '' COMPANY_F <<"EOF" 63 read -d '' COMPANY_F <<"EOF"
66 BR Light LTDA - LightBase Consulting in Public Software/LightBase Consultoria em Software Público 64 BR Light LTDA - LightBase Consulting in Public Software/LightBase Consultoria em Software Público
67 -Software livre! Abrace essa idéia!/Free software! Embrace that idea!  
68 +55-61-3347-1949/+55-61-3340-6966 - http://brlight.org/ - Brasil-DF 65 +55-61-3347-1949/+55-61-3340-6966 - http://brlight.org/ - Brasil-DF
  66 +Free software! Embrace that idea!/Software livre! Abrace essa idéia!
69 EOF 67 EOF
70 68
71 -f_begin "$TITLE_F" "$VERSION_F" "$ABOUT_F" "$WARNINGS_F" "$COMPANY_F" 69 +TUX=$(cat $SCRIPTDIR_V/tux.txt)
  70 +f_begin "$TITLE_F" "$VERSION_F" "$ABOUT_F$TUX" "$WARNINGS_F" "$COMPANY_F"
72 ABOUT_F="" 71 ABOUT_F=""
73 WARNINGS_F="" 72 WARNINGS_F=""
74 73
@@ -265,11 +264,11 @@ if [[ &quot;$DISTRO_TYPE&quot; == &quot;RH&quot; ]] ; then @@ -265,11 +264,11 @@ if [[ &quot;$DISTRO_TYPE&quot; == &quot;RH&quot; ]] ; then
265 EZ_I_SKIP_ON_V=0 264 EZ_I_SKIP_ON_V=0
266 f_open_section 265 f_open_section
267 f_div_section 266 f_div_section
268 - f_yes_no "Disable SElinux (use "y" if you never did it)?" 267 + f_yes_no "Disable SElinux (use \"y\" if you never did it)?"
269 if [ ${YES_NO_R} -eq 1 ] ; then 268 if [ ${YES_NO_R} -eq 1 ] ; then
270 setenforce 0 269 setenforce 0
271 270
272 - # NOTE: As condições abaixo visam evitar que o arquivo seja 271 + # NOTE: As condições abaixo visam evitar que o arquivo seja
273 # desnecessariamente e erroneamente modificado! By Questor 272 # desnecessariamente e erroneamente modificado! By Questor
274 EZ_I_SKIP_ON_V=$FAST_INST 273 EZ_I_SKIP_ON_V=$FAST_INST
275 f_fl_cont_str "# SELINUX=enforcing" "/etc/sysconfig/selinux" "The file \"/etc/sysconfig/selinux\" probably has already been changed! Check it!" 274 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 @@ -578,6 +577,15 @@ if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then
578 mv elasticsearch-servicewrapper-master/service /usr/local/elasticsearch/bin/ 577 mv elasticsearch-servicewrapper-master/service /usr/local/elasticsearch/bin/
579 rm -rf elasticsearch-servicewrapper-master 578 rm -rf elasticsearch-servicewrapper-master
580 /usr/local/elasticsearch/bin/service/elasticsearch install 579 /usr/local/elasticsearch/bin/service/elasticsearch install
  580 + f_div_section
  581 +
  582 + # NOTE: [ref.: https://stackoverflow.com/questions/16432300/how-to-config-single-node-for-single-cluster-standalone-cluster-elasticsearch]! By Questor
  583 + f_yes_no "Use $ES_NAME as single node (standalone server) (\"y\" highly recommended)?
  584 +* It will not be accessible to others servers (nodes) and will not discover others servers (nodes);
  585 +* This prevents erroneous and improper replication of your indexes."
  586 + if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then
  587 + 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"
  588 + fi
581 $ES_SERV_CMD start 589 $ES_SERV_CMD start
582 fi 590 fi
583 f_fire_hlp "elasticsearch" 9200 591 f_fire_hlp "elasticsearch" 9200
@@ -835,21 +843,17 @@ Use empty for \&quot;$PG_DB_F\&quot; (recommended)!&quot; @@ -835,21 +843,17 @@ Use empty for \&quot;$PG_DB_F\&quot; (recommended)!&quot;
835 cd /tmp 843 cd /tmp
836 F_GET_STDERR_R_HOLDER_0="" 844 F_GET_STDERR_R_HOLDER_0=""
837 LINE_BREAKS_0="" 845 LINE_BREAKS_0=""
838 - 846 + EZ_I_SKIP_ON_V=$FAST_INST
839 # NOTE: Define o "LC_COLLATE" e o "LC_CTYPE" para a database criada. 847 # NOTE: Define o "LC_COLLATE" e o "LC_CTYPE" para a database criada.
840 # Não é necessário, mas se u usuário quiser, tem a opção! By Questor 848 # Não é necessário, mas se u usuário quiser, tem a opção! By Questor
841 - LC_C_PG="en_US.UTF-8" 849 + LC_C_PG="$LANG"
842 f_div_section 850 f_div_section
843 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...). 851 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...).
844 -Use empty for \"$LC_C_PG\" (enough and recommended for LBG - LBGenerator)!" 1 852 +Use empty for \"$LANG\" (system default)!" 1
845 if [ -n "$GET_USR_INPUT_R" ] ; then 853 if [ -n "$GET_USR_INPUT_R" ] ; then
846 LC_C_PG=$GET_USR_INPUT_R 854 LC_C_PG=$GET_USR_INPUT_R
847 fi 855 fi
848 -  
849 - # 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;\""  
850 - # 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;\""  
851 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;\"" 856 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;\""
852 -  
853 F_GET_STDERR_R_HOLDER_0=$F_GET_STDERR_R_HOLDER_0$F_GET_STDERR_R 857 F_GET_STDERR_R_HOLDER_0=$F_GET_STDERR_R_HOLDER_0$F_GET_STDERR_R
854 f_get_stderr_stdout "sudo -u postgres psql -c \"ALTER DATABASE $PG_DB_F SET DateStyle = 'iso, dmy';\"" 858 f_get_stderr_stdout "sudo -u postgres psql -c \"ALTER DATABASE $PG_DB_F SET DateStyle = 'iso, dmy';\""
855 if [[ $F_GET_STDERR_R_HOLDER_0 != "" ]]; then 859 if [[ $F_GET_STDERR_R_HOLDER_0 != "" ]]; then
@@ -862,6 +866,7 @@ Use empty for \&quot;$LC_C_PG\&quot; (enough and recommended for LBG - LBGenerator)!&quot; 1 @@ -862,6 +866,7 @@ Use empty for \&quot;$LC_C_PG\&quot; (enough and recommended for LBG - LBGenerator)!&quot; 1
862 f_enter_to_cont "The database \"$PG_DB_F\" already created!" 866 f_enter_to_cont "The database \"$PG_DB_F\" already created!"
863 EZ_I_SKIP_ON_V=0 867 EZ_I_SKIP_ON_V=0
864 else 868 else
  869 + EZ_I_SKIP_ON_V=0
865 f_div_section 870 f_div_section
866 echo "Error when creating \"$PG_DB_F\" database! ERROR: \"$F_GET_STDERR_R_HOLDER_0\"." 871 echo "Error when creating \"$PG_DB_F\" database! ERROR: \"$F_GET_STDERR_R_HOLDER_0\"."
867 f_div_section 872 f_div_section
@@ -899,23 +904,9 @@ BASE_INST_DIR_V=&quot;/usr/local/lb&quot; @@ -899,23 +904,9 @@ BASE_INST_DIR_V=&quot;/usr/local/lb&quot;
899 # Criar o diretório base da instalação! 904 # Criar o diretório base da instalação!
900 905
901 f_create_base_dir() { 906 f_create_base_dir() {
902 - EZ_I_SKIP_ON_V=$FAST_INST  
903 - QUESTION_F="Insert where the base installation directory (name \"lb\") will be created (don't use \"/\" at the end).  
904 -Use empty for \"/usr/local\"!"  
905 - f_div_section  
906 - f_get_usr_input "$QUESTION_F" 1  
907 - QUESTION_F=""  
908 - if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ -z "$GET_USR_INPUT_R" ] ; then  
909 - f_chk_by_path_hlp "$BASE_INST_DIR_V" "d" "\"$BASE_INST_DIR_V\" directory already created!"  
910 - if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then  
911 - mkdir -p "$BASE_INST_DIR_V"  
912 - fi  
913 - else  
914 - BASE_INST_DIR_V="$GET_USR_INPUT_R/lb"  
915 - f_chk_by_path_hlp "$BASE_INST_DIR_V" "d" "\"$BASE_INST_DIR_V\" directory already created!"  
916 - if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then  
917 - mkdir -p "$BASE_INST_DIR_V"  
918 - fi 907 + f_chk_by_path_hlp "$BASE_INST_DIR_V" "d"
  908 + if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then
  909 + mkdir -p "$BASE_INST_DIR_V"
919 fi 910 fi
920 } 911 }
921 912
@@ -1014,9 +1005,11 @@ f_create_ve32() { @@ -1014,9 +1005,11 @@ f_create_ve32() {
1014 Args: 1005 Args:
1015 DONT_PROMPT_TO_INST (Optional[int]): Não questiona o usuário se deseja 1006 DONT_PROMPT_TO_INST (Optional[int]): Não questiona o usuário se deseja
1016 criar. Padrão 0. 1007 criar. Padrão 0.
  1008 + VE_NAME (str): Nome do virtualenv a ser criado.
1017 ' 1009 '
1018 1010
1019 DONT_PROMPT_TO_INST=$1 1011 DONT_PROMPT_TO_INST=$1
  1012 + VE_NAME=$2
1020 if [ -z "$DONT_PROMPT_TO_INST" ] ; then 1013 if [ -z "$DONT_PROMPT_TO_INST" ] ; then
1021 DONT_PROMPT_TO_INST=0 1014 DONT_PROMPT_TO_INST=0
1022 fi 1015 fi
@@ -1027,7 +1020,7 @@ f_create_ve32() { @@ -1027,7 +1020,7 @@ f_create_ve32() {
1027 fi 1020 fi
1028 f_enter_to_cont "Create the virtual environment (python3.2)!" 1021 f_enter_to_cont "Create the virtual environment (python3.2)!"
1029 EZ_I_SKIP_ON_V=$FAST_INST 1022 EZ_I_SKIP_ON_V=$FAST_INST
1030 - f_chk_by_path_hlp "$BASE_INST_DIR_V/ve32" "d" "Virtual environment (python3.2) already created in \"$BASE_INST_DIR_V/ve32\"!" 1023 + 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\"!"
1031 if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then 1024 if [ ${F_CHK_BY_PATH_HLP_R} -eq 0 ] ; then
1032 if [[ "$DISTRO_TYPE" == "RH" ]] ; then 1025 if [[ "$DISTRO_TYPE" == "RH" ]] ; then
1033 f_pack_is_inst "python-setuptools" "yum" "\"python-setuptools\" already installed!" 1026 f_pack_is_inst "python-setuptools" "yum" "\"python-setuptools\" already installed!"
@@ -1047,8 +1040,8 @@ f_create_ve32() { @@ -1047,8 +1040,8 @@ f_create_ve32() {
1047 fi 1040 fi
1048 f_common_packs 1041 f_common_packs
1049 cd "$BASE_INST_DIR_V" 1042 cd "$BASE_INST_DIR_V"
1050 - $BASE_INST_DIR_V/py32/bin/virtualenv-3.2 ve32  
1051 - mkdir "$BASE_INST_DIR_V/ve32/src" 1043 + $BASE_INST_DIR_V/py32/bin/virtualenv-3.2 $VE_NAME
  1044 + mkdir "$BASE_INST_DIR_V/$VE_NAME/src"
1052 fi 1045 fi
1053 EZ_I_SKIP_ON_V=$FAST_INST 1046 EZ_I_SKIP_ON_V=$FAST_INST
1054 } 1047 }
@@ -1056,6 +1049,41 @@ f_create_ve32() { @@ -1056,6 +1049,41 @@ f_create_ve32() {
1056 # < ----------------------------------------- 1049 # < -----------------------------------------
1057 1050
1058 # > ----------------------------------------- 1051 # > -----------------------------------------
  1052 +# Determine an appropriate amount of processes!
  1053 +
  1054 +NPROCESSES=0
  1055 +f_num_for_procs() {
  1056 + : 'Determine an appropriate amount of processes.'
  1057 +
  1058 + if (( NPROCESSES == 0 )) ; then
  1059 + f_get_stderr_stdout "nproc"
  1060 + if [[ $F_GET_STDERR_R == "" ]]; then
  1061 +
  1062 + # NOTE: Esse é o cálculo recomendado segundo algumas fontes. Eu
  1063 + # preferi fazer pelo dobro da quantidade de "cores" obtidas!
  1064 + # By Questor
  1065 + # (2 Workers * CPU Cores) + 1
  1066 + # ---------------------------
  1067 + # Para 1 core -> (2*1)+1 = 3
  1068 + # Para 2 cores -> (2*2)+1 = 5
  1069 + # Para 4 cores -> (2*4)+1 = 9
  1070 + NPROCESSES=$(( F_GET_STDOUT_R * 2 ))
  1071 + f_div_section
  1072 + f_get_usr_input "The recommended amount of processes to use on this server is \"$NPROCESSES\".
  1073 +Use empty for \"$NPROCESSES\" (recommended)!" 1
  1074 + if [ -n "$GET_USR_INPUT_R" ] ; then
  1075 + NPROCESSES=$GET_USR_INPUT_R
  1076 + fi
  1077 + else
  1078 + 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\"."
  1079 + f_error_exit
  1080 + fi
  1081 + fi
  1082 +}
  1083 +
  1084 +# < -----------------------------------------
  1085 +
  1086 +# > -----------------------------------------
1059 # Instalar o NGINX (nginx)! 1087 # Instalar o NGINX (nginx)!
1060 1088
1061 NGINX_INST=0 1089 NGINX_INST=0
@@ -1469,7 +1497,7 @@ f_inst_uwsgi() { @@ -1469,7 +1497,7 @@ f_inst_uwsgi() {
1469 elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then 1497 elif [[ "$DISTRO_TYPE" == "DEB" ]] ; then
1470 \cp "$SCRIPTDIR_V/other-srcs-n-apps/uwsgi-DEB-dist" "/etc/init.d/uwsgi" 1498 \cp "$SCRIPTDIR_V/other-srcs-n-apps/uwsgi-DEB-dist" "/etc/init.d/uwsgi"
1471 fi 1499 fi
1472 - f_ez_sed "<VE32_PATH>" "$BASE_INST_DIR_V/ve32" "/etc/init.d/uwsgi" 1 1500 + f_ez_sed "<UWSGI_VE32_PATH>" "$BASE_INST_DIR_V/uwsgi_ve32" "/etc/init.d/uwsgi" 1
1473 1501
1474 # NOTE: Criar o usuário "uwsgi" caso não exista! By Questor 1502 # NOTE: Criar o usuário "uwsgi" caso não exista! By Questor
1475 if [ -z "`grep uwsgi /etc/passwd`" ]; then 1503 if [ -z "`grep uwsgi /etc/passwd`" ]; then
@@ -1480,9 +1508,9 @@ f_inst_uwsgi() { @@ -1480,9 +1508,9 @@ f_inst_uwsgi() {
1480 1508
1481 # NOTE: Cria configurações e diretórios para que o uWSGI opere no modo 1509 # NOTE: Cria configurações e diretórios para que o uWSGI opere no modo
1482 # "emperor"! By Questor 1510 # "emperor"! By Questor
1483 - mkdir -p "$BASE_INST_DIR_V/ve32/src/uWSGI/vassals"  
1484 - \cp "$SCRIPTDIR_V/other-srcs-n-apps/production.ini.uwsgi.srv-dist" "$BASE_INST_DIR_V/ve32/src/uWSGI/production.ini"  
1485 - f_ez_sed "<VE32_PATH>" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/ve32/src/uWSGI/production.ini" 1511 + mkdir -p "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/vassals"
  1512 + \cp "$SCRIPTDIR_V/other-srcs-n-apps/production.ini.uwsgi.srv-dist" "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/production.ini"
  1513 + f_ez_sed "<UWSGI_VE32_PATH>" "$BASE_INST_DIR_V/uwsgi_ve32" "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/production.ini"
1486 1514
1487 if [[ "$DISTRO_TYPE" == "RH" ]] ; then 1515 if [[ "$DISTRO_TYPE" == "RH" ]] ; then
1488 chmod 755 uwsgi 1516 chmod 755 uwsgi
@@ -1531,18 +1559,18 @@ f_inst_lib() { @@ -1531,18 +1559,18 @@ f_inst_lib() {
1531 f_yes_no "Install the LIB - liblightbase?" 1559 f_yes_no "Install the LIB - liblightbase?"
1532 if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then 1560 if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then
1533 EZ_I_SKIP_ON_V=$FAST_INST 1561 EZ_I_SKIP_ON_V=$FAST_INST
1534 - f_chk_by_path_hlp "$BASE_INST_DIR_V/ve32/src/liblightbase" "d" "\"liblightbase\" already installed in \"$BASE_INST_DIR_V/ve32/src\"!" 1562 + 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\"!"
1535 F_BAK_MD_R=1 1563 F_BAK_MD_R=1
1536 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then 1564 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then
1537 - f_ez_mv_bak "$BASE_INST_DIR_V/ve32/src/liblightbase" "Backup old version and update? (\"y\" recommended)" 1565 + f_ez_mv_bak "$BASE_INST_DIR_V/lbg_ve32/src/liblightbase" "Backup old version and update? (\"y\" recommended)"
1538 fi 1566 fi
1539 if [ ${F_BAK_MD_R} -eq 1 ] ; then 1567 if [ ${F_BAK_MD_R} -eq 1 ] ; then
1540 f_inst_lib_py_packs 1 1568 f_inst_lib_py_packs 1
1541 cd "$SCRIPTDIR_V" 1569 cd "$SCRIPTDIR_V"
1542 tar -zxvf liblightbase.tar.gz 1570 tar -zxvf liblightbase.tar.gz
1543 - mv "$SCRIPTDIR_V/liblightbase" "$BASE_INST_DIR_V/ve32/src/"  
1544 - cd "$BASE_INST_DIR_V/ve32/src/liblightbase"  
1545 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 1571 + mv "$SCRIPTDIR_V/liblightbase" "$BASE_INST_DIR_V/lbg_ve32/src/"
  1572 + cd "$BASE_INST_DIR_V/lbg_ve32/src/liblightbase"
  1573 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
1546 fi 1574 fi
1547 fi 1575 fi
1548 EZ_I_SKIP_ON_V=$FAST_INST 1576 EZ_I_SKIP_ON_V=$FAST_INST
@@ -1600,10 +1628,10 @@ f_inst_ve_py2X() { @@ -1600,10 +1628,10 @@ f_inst_ve_py2X() {
1600 fi 1628 fi
1601 if [[ "$DISTRO_TYPE" == "RH" ]] ; then 1629 if [[ "$DISTRO_TYPE" == "RH" ]] ; then
1602 PYTHON_2_X="2.7" 1630 PYTHON_2_X="2.7"
1603 - VE_2_X="ve27" 1631 + VE_2_X="supervisor_ve27"
1604 elif [[ "$DISTRO_TYPE" == "DEB" ]] || [[ "$DISTRO_TYPE" == "SUSE" ]] ; then 1632 elif [[ "$DISTRO_TYPE" == "DEB" ]] || [[ "$DISTRO_TYPE" == "SUSE" ]] ; then
1605 PYTHON_2_X="2.7" 1633 PYTHON_2_X="2.7"
1606 - VE_2_X="ve27" 1634 + VE_2_X="supervisor_ve27"
1607 fi 1635 fi
1608 if [ ${DONT_PROMPT_TO_INST} -eq 1 ] || [ ${FAST_INST} -eq 1 ] ; then 1636 if [ ${DONT_PROMPT_TO_INST} -eq 1 ] || [ ${FAST_INST} -eq 1 ] ; then
1609 EZ_I_SKIP_ON_V=1 1637 EZ_I_SKIP_ON_V=1
@@ -1767,8 +1795,6 @@ f_inst_supervisor_py_packs() { @@ -1767,8 +1795,6 @@ f_inst_supervisor_py_packs() {
1767 1795
1768 # < ----------------------------------------- 1796 # < -----------------------------------------
1769 1797
1770 -# < -----------------------------------------  
1771 -  
1772 SVISOR_PORT=9001 1798 SVISOR_PORT=9001
1773 SVISOR_USER="lbu" 1799 SVISOR_USER="lbu"
1774 SVISOR_PWD="lbu" 1800 SVISOR_PWD="lbu"
@@ -1819,7 +1845,7 @@ f_inst_supervisor(){ @@ -1819,7 +1845,7 @@ f_inst_supervisor(){
1819 f_ez_mv_bak "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" "" 1 0 1 1845 f_ez_mv_bak "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" "" 1 0 1
1820 \cp "$SCRIPTDIR_V/other-srcs-n-apps/supervisord.conf-dist" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/supervisord.conf" 1846 \cp "$SCRIPTDIR_V/other-srcs-n-apps/supervisord.conf-dist" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/supervisord.conf"
1821 \cp "$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-supervisord-dist" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" 1847 \cp "$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-supervisord-dist" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf"
1822 - f_ez_sed "<VE_32_PATH>" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" 1 1848 + f_ez_sed "<LBG_VE32_PATH>" "$BASE_INST_DIR_V/lbg_ve32" "$BASE_INST_DIR_V/$VE_2_X/src/supervisor/apps/lbg.conf" 1
1823 1849
1824 # NOTE: Determinar um número adequado de processos! By Questor 1850 # NOTE: Determinar um número adequado de processos! By Questor
1825 f_procs_qtt 2 1851 f_procs_qtt 2
@@ -1951,7 +1977,7 @@ if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then @@ -1951,7 +1977,7 @@ if [ ${EZ_I_SKIP_ON_V} -eq 1 ] || [ ${YES_NO_R} -eq 1 ] ; then
1951 f_create_base_dir 1977 f_create_base_dir
1952 f_inst_py32 1 1978 f_inst_py32 1
1953 f_inst_ve_py32 1 1979 f_inst_ve_py32 1
1954 - f_create_ve32 1 1980 + f_create_ve32 1 "lbg_ve32"
1955 if [[ "$DISTRO_TYPE" == "DEB" ]] ; then 1981 if [[ "$DISTRO_TYPE" == "DEB" ]] ; then
1956 NGINX_CONF_PATH="/etc/nginx/sites-available" 1982 NGINX_CONF_PATH="/etc/nginx/sites-available"
1957 NGINX_CONF_PATH_E="/etc/nginx/sites-enabled" 1983 NGINX_CONF_PATH_E="/etc/nginx/sites-enabled"
@@ -2031,17 +2057,17 @@ Use empty for \&quot;$HTTP_PORT_W\&quot; (recommended)!&quot; @@ -2031,17 +2057,17 @@ Use empty for \&quot;$HTTP_PORT_W\&quot; (recommended)!&quot;
2031 esac 2057 esac
2032 f_inst_lib 1 2058 f_inst_lib 1
2033 f_inst_lbg_py_packs 1 2059 f_inst_lbg_py_packs 1
2034 - f_chk_by_path_hlp "$BASE_INST_DIR_V/ve32/src/LBGenerator" "d" "\"LBGenerator\" already installed in \"$BASE_INST_DIR_V/ve32/src\"!" 2060 + 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\"!"
2035 F_BAK_MD_R=1 2061 F_BAK_MD_R=1
2036 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then 2062 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then
2037 - f_ez_mv_bak "$BASE_INST_DIR_V/ve32/src/LBGenerator" "Backup old version and update? (\"y\" recommended)" 2063 + f_ez_mv_bak "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator" "Backup old version and update? (\"y\" recommended)"
2038 fi 2064 fi
2039 if [ ${F_BAK_MD_R} -eq 1 ] ; then 2065 if [ ${F_BAK_MD_R} -eq 1 ] ; then
2040 cd "$SCRIPTDIR_V" 2066 cd "$SCRIPTDIR_V"
2041 tar -zxvf LBGenerator.tar.gz 2067 tar -zxvf LBGenerator.tar.gz
2042 - mv "$SCRIPTDIR_V/LBGenerator" "$BASE_INST_DIR_V/ve32/src/"  
2043 - cd "$BASE_INST_DIR_V/ve32/src/LBGenerator"  
2044 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 2068 + mv "$SCRIPTDIR_V/LBGenerator" "$BASE_INST_DIR_V/lbg_ve32/src/"
  2069 + cd "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator"
  2070 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
2045 PG_CFG_F="postgresql://$PG_USER_F:$PG_PWD_F@127.0.0.1/$PG_DB_F" 2071 PG_CFG_F="postgresql://$PG_USER_F:$PG_PWD_F@127.0.0.1/$PG_DB_F"
2046 QUESTION_F="Enter the postgresql LBG - LBGenerator configuration. 2072 QUESTION_F="Enter the postgresql LBG - LBGenerator configuration.
2047 Use empty for \"$PG_CFG_F\"!" 2073 Use empty for \"$PG_CFG_F\"!"
@@ -2106,16 +2132,16 @@ Use empty for \&quot;$ES_ESDEF_URL\&quot;!&quot; @@ -2106,16 +2132,16 @@ Use empty for \&quot;$ES_ESDEF_URL\&quot;!&quot;
2106 ES_ESDEF_URL=$GET_USR_INPUT_R 2132 ES_ESDEF_URL=$GET_USR_INPUT_R
2107 fi 2133 fi
2108 if [[ "$HTTP_SRV_WSGI" == "u" ]] ; then 2134 if [[ "$HTTP_SRV_WSGI" == "u" ]] ; then
2109 - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini.uwsgi-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\""  
2110 - f_ez_sed "<SQLA_POOL_SIZE>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2111 - f_ez_sed "<SQLA_POOL_SIZE_MAX_OVERFLOW>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2112 - f_ez_sed "<LBI_LBINDEX_URL>" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini"  
2113 - f_ez_sed "<ES_ESDEF_URL>" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini"  
2114 - f_ez_sed "<SQLA_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2115 - f_ez_sed "<VE32_PATH>" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2116 - f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2135 + 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\""
  2136 + f_ez_sed "<SQLA_POOL_SIZE>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2137 + f_ez_sed "<SQLA_POOL_SIZE_MAX_OVERFLOW>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2138 + f_ez_sed "<LBI_LBINDEX_URL>" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
  2139 + f_ez_sed "<ES_ESDEF_URL>" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
  2140 + f_ez_sed "<SQLA_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2141 + f_ez_sed "<LBG_VE32_PATH>" "$BASE_INST_DIR_V/lbg_ve32" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2142 + f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2117 f_procs_qtt 4 2143 f_procs_qtt 4
2118 - f_ez_sed "<UWSGI_PROCESSES>" "$F_PROCS_QTT_R" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2144 + f_ez_sed "<UWSGI_PROCESSES>" "$F_PROCS_QTT_R" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2119 REQ_TIMEOUT=0 2145 REQ_TIMEOUT=0
2120 f_srv_memory 2146 f_srv_memory
2121 f_bytes_n_units "$F_SRV_MEMORY_R" "KB" "MB" 2147 f_bytes_n_units "$F_SRV_MEMORY_R" "KB" "MB"
@@ -2141,22 +2167,22 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT @@ -2141,22 +2167,22 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT
2141 if [ -n "$GET_USR_INPUT_R" ] ; then 2167 if [ -n "$GET_USR_INPUT_R" ] ; then
2142 REQ_TIMEOUT=$GET_USR_INPUT_R 2168 REQ_TIMEOUT=$GET_USR_INPUT_R
2143 fi 2169 fi
2144 - f_ez_sed "<REQ_TIMEOUT>" "$REQ_TIMEOUT" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 2170 + f_ez_sed "<REQ_TIMEOUT>" "$REQ_TIMEOUT" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
2145 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "150" 2171 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "150"
2146 UWSGI_POST_BUFFERING=$F_GET_PERCENT_FROM_R 2172 UWSGI_POST_BUFFERING=$F_GET_PERCENT_FROM_R
2147 - f_ez_sed "<UWSGI_POST_BUFFERING>" "$UWSGI_POST_BUFFERING" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2173 + f_ez_sed "<UWSGI_POST_BUFFERING>" "$UWSGI_POST_BUFFERING" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2148 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "70" 2174 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "70"
2149 UWSGI_RELOAD_ON_AS=$F_GET_PERCENT_FROM_R 2175 UWSGI_RELOAD_ON_AS=$F_GET_PERCENT_FROM_R
2150 - f_ez_sed "<UWSGI_RELOAD_ON_AS>" "$UWSGI_RELOAD_ON_AS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2176 + f_ez_sed "<UWSGI_RELOAD_ON_AS>" "$UWSGI_RELOAD_ON_AS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2151 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "65" 2177 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "65"
2152 UWSGI_RELOAD_ON_RSS=$F_GET_PERCENT_FROM_R 2178 UWSGI_RELOAD_ON_RSS=$F_GET_PERCENT_FROM_R
2153 - f_ez_sed "<UWSGI_RELOAD_ON_RSS>" "$UWSGI_RELOAD_ON_RSS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2179 + f_ez_sed "<UWSGI_RELOAD_ON_RSS>" "$UWSGI_RELOAD_ON_RSS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2154 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "85" 2180 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "85"
2155 UWSGI_EVIL_RELOAD_ON_AS=$F_GET_PERCENT_FROM_R 2181 UWSGI_EVIL_RELOAD_ON_AS=$F_GET_PERCENT_FROM_R
2156 - f_ez_sed "<UWSGI_EVIL_RELOAD_ON_AS>" "$UWSGI_EVIL_RELOAD_ON_AS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2182 + f_ez_sed "<UWSGI_EVIL_RELOAD_ON_AS>" "$UWSGI_EVIL_RELOAD_ON_AS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2157 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "75" 2183 f_get_percent_from "$F_SRV_MEMORY_R_IN_MB" "75"
2158 UWSGI_EVIL_RELOAD_ON_RSS=$F_GET_PERCENT_FROM_R 2184 UWSGI_EVIL_RELOAD_ON_RSS=$F_GET_PERCENT_FROM_R
2159 - f_ez_sed "<UWSGI_EVIL_RELOAD_ON_RSS>" "$UWSGI_EVIL_RELOAD_ON_RSS" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 2185 + f_ez_sed "<UWSGI_EVIL_RELOAD_ON_RSS>" "$UWSGI_EVIL_RELOAD_ON_RSS" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
2160 f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!" 2186 f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!"
2161 F_BAK_MD_R=1 2187 F_BAK_MD_R=1
2162 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then 2188 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then
@@ -2166,13 +2192,17 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT @@ -2166,13 +2192,17 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT
2166 \cp "$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist" "$NGINX_CONF_PATH/lbg.conf" 2192 \cp "$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist" "$NGINX_CONF_PATH/lbg.conf"
2167 f_ez_sed "<HTTP_PORT_A>" "$HTTP_PORT_A" "$NGINX_CONF_PATH/lbg.conf" 2193 f_ez_sed "<HTTP_PORT_A>" "$HTTP_PORT_A" "$NGINX_CONF_PATH/lbg.conf"
2168 f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$NGINX_CONF_PATH/lbg.conf" 2194 f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$NGINX_CONF_PATH/lbg.conf"
2169 - f_ez_sed "<VE32_PATH>" "$BASE_INST_DIR_V/ve32" "$NGINX_CONF_PATH/lbg.conf" 2195 + f_ez_sed "<LBG_VE32_PATH>" "$BASE_INST_DIR_V/lbg_ve32" "$NGINX_CONF_PATH/lbg.conf"
2170 if [[ "$DISTRO_TYPE" == "DEB" ]] ; then 2196 if [[ "$DISTRO_TYPE" == "DEB" ]] ; then
2171 ln -s "$NGINX_CONF_PATH/lbg.conf" "$NGINX_CONF_PATH_E/lbg.conf" &>/dev/null 2197 ln -s "$NGINX_CONF_PATH/lbg.conf" "$NGINX_CONF_PATH_E/lbg.conf" &>/dev/null
2172 fi 2198 fi
2173 fi 2199 fi
  2200 +
  2201 + # NOTE: Cria um "virtualenv" exclusivo para o "uWSGI"! By Questor
  2202 + f_create_ve32 1 "uwsgi_ve32"
  2203 +
2174 f_inst_uwsgi 1 2204 f_inst_uwsgi 1
2175 - ln -nsf "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" "$BASE_INST_DIR_V/ve32/src/uWSGI/vassals/lbg.ini" 2205 + ln -nsf "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" "$BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/vassals/lbg.ini"
2176 f_svc_helper "nginx" "restart" 1 2206 f_svc_helper "nginx" "restart" 1
2177 2207
2178 # TODO: Por alguma razão que eu não consegui entender de jeito 2208 # TODO: Por alguma razão que eu não consegui entender de jeito
@@ -2186,13 +2216,17 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT @@ -2186,13 +2216,17 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT
2186 f_svc_helper "uwsgi" "restart" 1 2216 f_svc_helper "uwsgi" "restart" 1
2187 2217
2188 elif [[ "$HTTP_SRV_WSGI" == "p" ]] ; then 2218 elif [[ "$HTTP_SRV_WSGI" == "p" ]] ; then
2189 - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini.pserver-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\""  
2190 - f_ez_sed "<SQLA_POOL_SIZE>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2191 - f_ez_sed "<SQLA_POOL_SIZE_MAX_OVERFLOW>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2192 - f_ez_sed "<LBI_LBINDEX_URL>" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini"  
2193 - f_ez_sed "<ES_ESDEF_URL>" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini"  
2194 - f_ez_sed "<SQLA_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2195 - f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 2219 +
  2220 + # TODO: E para pserver para lbg e lba juntos? Como está sendo
  2221 + # tratado? By Questor
  2222 +
  2223 + 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\""
  2224 + f_ez_sed "<SQLA_POOL_SIZE>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2225 + f_ez_sed "<SQLA_POOL_SIZE_MAX_OVERFLOW>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2226 + f_ez_sed "<LBI_LBINDEX_URL>" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
  2227 + f_ez_sed "<ES_ESDEF_URL>" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
  2228 + f_ez_sed "<SQLA_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2229 + f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
2196 f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!" 2230 f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!"
2197 F_BAK_MD_R=1 2231 F_BAK_MD_R=1
2198 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then 2232 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then
@@ -2218,14 +2252,14 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT @@ -2218,14 +2252,14 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT
2218 f_svc_helper "nginx" "restart" 1 2252 f_svc_helper "nginx" "restart" 1
2219 f_inst_supervisor 1 2253 f_inst_supervisor 1
2220 elif [[ "$HTTP_SRV_WSGI" == "a" ]] ; then 2254 elif [[ "$HTTP_SRV_WSGI" == "a" ]] ; then
2221 - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/lbgenerator.wsgi-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/lbgenerator.wsgi\""  
2222 - f_ez_sed "<VE32_PATH>" "$BASE_INST_DIR_V/ve32" "$BASE_INST_DIR_V/ve32/src/LBGenerator/lbgenerator.wsgi"  
2223 - eval "cp -f \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini.apache-dist\" \"$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini\""  
2224 - f_ez_sed "<SQLA_POOL_SIZE>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2225 - f_ez_sed "<SQLA_POOL_SIZE_MAX_OVERFLOW>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1  
2226 - f_ez_sed "<LBI_LBINDEX_URL>" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini"  
2227 - f_ez_sed "<ES_ESDEF_URL>" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini"  
2228 - f_ez_sed "<SQLA_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" 1 2255 + eval "cp -f \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/lbgenerator.wsgi-dist\" \"$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/lbgenerator.wsgi\""
  2256 + f_ez_sed "<LBG_VE32_PATH>" "$BASE_INST_DIR_V/lbg_ve32" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/lbgenerator.wsgi"
  2257 + 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\""
  2258 + f_ez_sed "<SQLA_POOL_SIZE>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2259 + f_ez_sed "<SQLA_POOL_SIZE_MAX_OVERFLOW>" "$SQLA_POOL_SIZE" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
  2260 + f_ez_sed "<LBI_LBINDEX_URL>" "$LBI_LBINDEX_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
  2261 + f_ez_sed "<ES_ESDEF_URL>" "$ES_ESDEF_URL" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini"
  2262 + f_ez_sed "<SQLA_URL>" "$PG_CFG_F" "$BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini" 1
2229 f_chk_by_path_hlp "$HTTPD_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$HTTPD_CONF_PATH/lbg.conf\"!" 2263 f_chk_by_path_hlp "$HTTPD_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$HTTPD_CONF_PATH/lbg.conf\"!"
2230 F_BAK_MD_R=1 2264 F_BAK_MD_R=1
2231 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then 2265 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then
@@ -2235,7 +2269,7 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT @@ -2235,7 +2269,7 @@ Use empty for \&quot;$REQ_TIMEOUT\&quot;$TOO_LOW_REQ_TIMEOUT
2235 eval "cp -f \"$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist\" \"$HTTPD_CONF_PATH/lbg.conf\"" 2269 eval "cp -f \"$SCRIPTDIR_V/other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist\" \"$HTTPD_CONF_PATH/lbg.conf\""
2236 f_ez_sed "<HTTP_PORT_A>" "$HTTP_PORT_A" "$HTTPD_CONF_PATH/lbg.conf" 2270 f_ez_sed "<HTTP_PORT_A>" "$HTTP_PORT_A" "$HTTPD_CONF_PATH/lbg.conf"
2237 f_ez_sed "<MOD_WSGI_PATH>" "$MOD_WSGI_PATH" "$HTTPD_CONF_PATH/lbg.conf" 2271 f_ez_sed "<MOD_WSGI_PATH>" "$MOD_WSGI_PATH" "$HTTPD_CONF_PATH/lbg.conf"
2238 - f_ez_sed "<VE32_PATH>" "$BASE_INST_DIR_V/ve32" "$HTTPD_CONF_PATH/lbg.conf" 1 2272 + f_ez_sed "<LBG_VE32_PATH>" "$BASE_INST_DIR_V/lbg_ve32" "$HTTPD_CONF_PATH/lbg.conf" 1
2239 f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$HTTPD_CONF_PATH/lbg.conf" 1 2273 f_ez_sed "<APP_ROOT_F>" "$APP_ROOT_F" "$HTTPD_CONF_PATH/lbg.conf" 1
2240 f_ez_sed "<VAR_LOG_HTTPD>" "$VAR_LOG_HTTPD" "$HTTPD_CONF_PATH/lbg.conf" 1 2274 f_ez_sed "<VAR_LOG_HTTPD>" "$VAR_LOG_HTTPD" "$HTTPD_CONF_PATH/lbg.conf" 1
2241 f_ez_sed "<HTTPD_USR>" "$HTTPD_USR" "$HTTPD_CONF_PATH/lbg.conf" 1 2275 f_ez_sed "<HTTPD_USR>" "$HTTPD_USR" "$HTTPD_CONF_PATH/lbg.conf" 1
@@ -2350,7 +2384,7 @@ if [ ${UWSGI_INST} -eq 1 ] ; then @@ -2350,7 +2384,7 @@ if [ ${UWSGI_INST} -eq 1 ] ; then
2350 $UWSGI_SVC_SYNTAX 2384 $UWSGI_SVC_SYNTAX
2351 2385
2352 To configure uWSGI... 2386 To configure uWSGI...
2353 - vi $BASE_INST_DIR_V/ve32/src/uWSGI/production.ini 2387 + vi $BASE_INST_DIR_V/uwsgi_ve32/src/uWSGI/production.ini
2354 2388
2355 Log... 2389 Log...
2356 less /var/log/uwsgi.log 2390 less /var/log/uwsgi.log
@@ -2478,13 +2512,13 @@ if [ ${LBG_INST} -eq 1 ] ; then @@ -2478,13 +2512,13 @@ if [ ${LBG_INST} -eq 1 ] ; then
2478 http://<machine_ip_or_name>$HTTP_URL_PORT/$APP_ROOT_F 2512 http://<machine_ip_or_name>$HTTP_URL_PORT/$APP_ROOT_F
2479 2513
2480 To configure LBG... 2514 To configure LBG...
2481 - vi $BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini$LBG_LOG 2515 + vi $BASE_INST_DIR_V/lbg_ve32/src/LBGenerator/production.ini$LBG_LOG
2482 2516
2483 python3.2 path... 2517 python3.2 path...
2484 $BASE_INST_DIR_V/py32 2518 $BASE_INST_DIR_V/py32
2485 2519
2486 python3.2 virtual environment path... 2520 python3.2 virtual environment path...
2487 - $BASE_INST_DIR_V/ve32 2521 + $BASE_INST_DIR_V/lbg_ve32
2488 2522
2489 " 2523 "
2490 fi 2524 fi
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; @@ -82,7 +82,40 @@ ALTER SEQUENCE lb_base_id_base_seq OWNED BY lb_base.id_base;
82 82
83 83
84 -- 84 --
85 --- Name: lb_doc__form; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 85 +-- Name: lb_doc__app_config; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  86 +--
  87 +
  88 +CREATE TABLE lb_doc__app_config (
  89 + id_doc integer NOT NULL,
  90 + document json NOT NULL,
  91 + dt_doc timestamp without time zone NOT NULL,
  92 + dt_last_up timestamp without time zone NOT NULL,
  93 + dt_del timestamp without time zone,
  94 + dt_idx timestamp without time zone,
  95 + nm_user_alteracao character varying[],
  96 + nm_apelido character varying,
  97 + nm_aplicacao character varying
  98 +);
  99 +
  100 +
  101 +ALTER TABLE lb_doc__app_config OWNER TO postgres;
  102 +
  103 +--
  104 +-- Name: lb_doc__app_config_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
  105 +--
  106 +
  107 +CREATE SEQUENCE lb_doc__app_config_id_doc_seq
  108 + START WITH 1
  109 + INCREMENT BY 1
  110 + NO MINVALUE
  111 + NO MAXVALUE
  112 + CACHE 1;
  113 +
  114 +
  115 +ALTER TABLE lb_doc__app_config_id_doc_seq OWNER TO postgres;
  116 +
  117 +--
  118 +-- Name: lb_doc__form; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
86 -- 119 --
87 120
88 CREATE TABLE lb_doc__form ( 121 CREATE TABLE lb_doc__form (
@@ -95,10 +128,10 @@ CREATE TABLE lb_doc__form ( @@ -95,10 +128,10 @@ CREATE TABLE lb_doc__form (
95 ); 128 );
96 129
97 130
98 -ALTER TABLE lb_doc__form OWNER TO lbu; 131 +ALTER TABLE lb_doc__form OWNER TO postgres;
99 132
100 -- 133 --
101 --- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu 134 +-- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
102 -- 135 --
103 136
104 CREATE SEQUENCE lb_doc__form_id_doc_seq 137 CREATE SEQUENCE lb_doc__form_id_doc_seq
@@ -109,7 +142,7 @@ CREATE SEQUENCE lb_doc__form_id_doc_seq @@ -109,7 +142,7 @@ CREATE SEQUENCE lb_doc__form_id_doc_seq
109 CACHE 1; 142 CACHE 1;
110 143
111 144
112 -ALTER TABLE lb_doc__form_id_doc_seq OWNER TO lbu; 145 +ALTER TABLE lb_doc__form_id_doc_seq OWNER TO postgres;
113 146
114 -- 147 --
115 -- Name: lb_doc__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 148 -- Name: lb_doc__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
@@ -142,7 +175,39 @@ CREATE SEQUENCE lb_doc__history_id_doc_seq @@ -142,7 +175,39 @@ CREATE SEQUENCE lb_doc__history_id_doc_seq
142 ALTER TABLE lb_doc__history_id_doc_seq OWNER TO postgres; 175 ALTER TABLE lb_doc__history_id_doc_seq OWNER TO postgres;
143 176
144 -- 177 --
145 --- Name: lb_doc__report; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 178 +-- Name: lb_doc__portal; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  179 +--
  180 +
  181 +CREATE TABLE lb_doc__portal (
  182 + id_doc integer NOT NULL,
  183 + document json NOT NULL,
  184 + dt_doc timestamp without time zone NOT NULL,
  185 + dt_last_up timestamp without time zone NOT NULL,
  186 + dt_del timestamp without time zone,
  187 + dt_idx timestamp without time zone,
  188 + cpf_user character varying,
  189 + nm_portal character varying
  190 +);
  191 +
  192 +
  193 +ALTER TABLE lb_doc__portal OWNER TO postgres;
  194 +
  195 +--
  196 +-- Name: lb_doc__portal_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
  197 +--
  198 +
  199 +CREATE SEQUENCE lb_doc__portal_id_doc_seq
  200 + START WITH 1
  201 + INCREMENT BY 1
  202 + NO MINVALUE
  203 + NO MAXVALUE
  204 + CACHE 1;
  205 +
  206 +
  207 +ALTER TABLE lb_doc__portal_id_doc_seq OWNER TO postgres;
  208 +
  209 +--
  210 +-- Name: lb_doc__report; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
146 -- 211 --
147 212
148 CREATE TABLE lb_doc__report ( 213 CREATE TABLE lb_doc__report (
@@ -155,10 +220,10 @@ CREATE TABLE lb_doc__report ( @@ -155,10 +220,10 @@ CREATE TABLE lb_doc__report (
155 ); 220 );
156 221
157 222
158 -ALTER TABLE lb_doc__report OWNER TO lbu; 223 +ALTER TABLE lb_doc__report OWNER TO postgres;
159 224
160 -- 225 --
161 --- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu 226 +-- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
162 -- 227 --
163 228
164 CREATE SEQUENCE lb_doc__report_id_doc_seq 229 CREATE SEQUENCE lb_doc__report_id_doc_seq
@@ -169,10 +234,10 @@ CREATE SEQUENCE lb_doc__report_id_doc_seq @@ -169,10 +234,10 @@ CREATE SEQUENCE lb_doc__report_id_doc_seq
169 CACHE 1; 234 CACHE 1;
170 235
171 236
172 -ALTER TABLE lb_doc__report_id_doc_seq OWNER TO lbu; 237 +ALTER TABLE lb_doc__report_id_doc_seq OWNER TO postgres;
173 238
174 -- 239 --
175 --- Name: lb_doc__search; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 240 +-- Name: lb_doc__search; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
176 -- 241 --
177 242
178 CREATE TABLE lb_doc__search ( 243 CREATE TABLE lb_doc__search (
@@ -185,10 +250,10 @@ CREATE TABLE lb_doc__search ( @@ -185,10 +250,10 @@ CREATE TABLE lb_doc__search (
185 ); 250 );
186 251
187 252
188 -ALTER TABLE lb_doc__search OWNER TO lbu; 253 +ALTER TABLE lb_doc__search OWNER TO postgres;
189 254
190 -- 255 --
191 --- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu 256 +-- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
192 -- 257 --
193 258
194 CREATE SEQUENCE lb_doc__search_id_doc_seq 259 CREATE SEQUENCE lb_doc__search_id_doc_seq
@@ -199,7 +264,7 @@ CREATE SEQUENCE lb_doc__search_id_doc_seq @@ -199,7 +264,7 @@ CREATE SEQUENCE lb_doc__search_id_doc_seq
199 CACHE 1; 264 CACHE 1;
200 265
201 266
202 -ALTER TABLE lb_doc__search_id_doc_seq OWNER TO lbu; 267 +ALTER TABLE lb_doc__search_id_doc_seq OWNER TO postgres;
203 268
204 -- 269 --
205 -- Name: lb_doc__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 270 -- Name: lb_doc__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
@@ -240,7 +305,7 @@ CREATE SEQUENCE lb_doc__user_id_doc_seq @@ -240,7 +305,7 @@ CREATE SEQUENCE lb_doc__user_id_doc_seq
240 ALTER TABLE lb_doc__user_id_doc_seq OWNER TO postgres; 305 ALTER TABLE lb_doc__user_id_doc_seq OWNER TO postgres;
241 306
242 -- 307 --
243 --- Name: lb_doc_app_user; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 308 +-- Name: lb_doc_app_user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
244 -- 309 --
245 310
246 CREATE TABLE lb_doc_app_user ( 311 CREATE TABLE lb_doc_app_user (
@@ -259,10 +324,10 @@ CREATE TABLE lb_doc_app_user ( @@ -259,10 +324,10 @@ CREATE TABLE lb_doc_app_user (
259 ); 324 );
260 325
261 326
262 -ALTER TABLE lb_doc_app_user OWNER TO lbu; 327 +ALTER TABLE lb_doc_app_user OWNER TO postgres;
263 328
264 -- 329 --
265 --- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu 330 +-- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
266 -- 331 --
267 332
268 CREATE SEQUENCE lb_doc_app_user_id_doc_seq 333 CREATE SEQUENCE lb_doc_app_user_id_doc_seq
@@ -273,7 +338,7 @@ CREATE SEQUENCE lb_doc_app_user_id_doc_seq @@ -273,7 +338,7 @@ CREATE SEQUENCE lb_doc_app_user_id_doc_seq
273 CACHE 1; 338 CACHE 1;
274 339
275 340
276 -ALTER TABLE lb_doc_app_user_id_doc_seq OWNER TO lbu; 341 +ALTER TABLE lb_doc_app_user_id_doc_seq OWNER TO postgres;
277 342
278 -- 343 --
279 -- Name: lb_doc_log_lbconverter; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 344 -- 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 @@ -344,7 +409,25 @@ CREATE SEQUENCE lb_doc_log_lbindex_id_doc_seq
344 ALTER TABLE lb_doc_log_lbindex_id_doc_seq OWNER TO postgres; 409 ALTER TABLE lb_doc_log_lbindex_id_doc_seq OWNER TO postgres;
345 410
346 -- 411 --
347 --- Name: lb_file__form; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 412 +-- Name: lb_file__app_config; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  413 +--
  414 +
  415 +CREATE TABLE lb_file__app_config (
  416 + id_file uuid NOT NULL,
  417 + id_doc integer,
  418 + filename character varying NOT NULL,
  419 + file bytea NOT NULL,
  420 + mimetype character varying NOT NULL,
  421 + filesize integer NOT NULL,
  422 + filetext character varying,
  423 + dt_ext_text timestamp without time zone
  424 +);
  425 +
  426 +
  427 +ALTER TABLE lb_file__app_config OWNER TO postgres;
  428 +
  429 +--
  430 +-- Name: lb_file__form; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
348 -- 431 --
349 432
350 CREATE TABLE lb_file__form ( 433 CREATE TABLE lb_file__form (
@@ -359,7 +442,7 @@ CREATE TABLE lb_file__form ( @@ -359,7 +442,7 @@ CREATE TABLE lb_file__form (
359 ); 442 );
360 443
361 444
362 -ALTER TABLE lb_file__form OWNER TO lbu; 445 +ALTER TABLE lb_file__form OWNER TO postgres;
363 446
364 -- 447 --
365 -- Name: lb_file__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 448 -- Name: lb_file__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
@@ -380,7 +463,25 @@ CREATE TABLE lb_file__history ( @@ -380,7 +463,25 @@ CREATE TABLE lb_file__history (
380 ALTER TABLE lb_file__history OWNER TO postgres; 463 ALTER TABLE lb_file__history OWNER TO postgres;
381 464
382 -- 465 --
383 --- Name: lb_file__report; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 466 +-- Name: lb_file__portal; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
  467 +--
  468 +
  469 +CREATE TABLE lb_file__portal (
  470 + id_file uuid NOT NULL,
  471 + id_doc integer,
  472 + filename character varying NOT NULL,
  473 + file bytea NOT NULL,
  474 + mimetype character varying NOT NULL,
  475 + filesize integer NOT NULL,
  476 + filetext character varying,
  477 + dt_ext_text timestamp without time zone
  478 +);
  479 +
  480 +
  481 +ALTER TABLE lb_file__portal OWNER TO postgres;
  482 +
  483 +--
  484 +-- Name: lb_file__report; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
384 -- 485 --
385 486
386 CREATE TABLE lb_file__report ( 487 CREATE TABLE lb_file__report (
@@ -395,10 +496,10 @@ CREATE TABLE lb_file__report ( @@ -395,10 +496,10 @@ CREATE TABLE lb_file__report (
395 ); 496 );
396 497
397 498
398 -ALTER TABLE lb_file__report OWNER TO lbu; 499 +ALTER TABLE lb_file__report OWNER TO postgres;
399 500
400 -- 501 --
401 --- Name: lb_file__search; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 502 +-- Name: lb_file__search; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
402 -- 503 --
403 504
404 CREATE TABLE lb_file__search ( 505 CREATE TABLE lb_file__search (
@@ -413,7 +514,7 @@ CREATE TABLE lb_file__search ( @@ -413,7 +514,7 @@ CREATE TABLE lb_file__search (
413 ); 514 );
414 515
415 516
416 -ALTER TABLE lb_file__search OWNER TO lbu; 517 +ALTER TABLE lb_file__search OWNER TO postgres;
417 518
418 -- 519 --
419 -- Name: lb_file__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 520 -- Name: lb_file__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
@@ -434,7 +535,7 @@ CREATE TABLE lb_file__user ( @@ -434,7 +535,7 @@ CREATE TABLE lb_file__user (
434 ALTER TABLE lb_file__user OWNER TO postgres; 535 ALTER TABLE lb_file__user OWNER TO postgres;
435 536
436 -- 537 --
437 --- Name: lb_file_app_user; Type: TABLE; Schema: public; Owner: lbu; Tablespace: 538 +-- Name: lb_file_app_user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
438 -- 539 --
439 540
440 CREATE TABLE lb_file_app_user ( 541 CREATE TABLE lb_file_app_user (
@@ -449,7 +550,7 @@ CREATE TABLE lb_file_app_user ( @@ -449,7 +550,7 @@ CREATE TABLE lb_file_app_user (
449 ); 550 );
450 551
451 552
452 -ALTER TABLE lb_file_app_user OWNER TO lbu; 553 +ALTER TABLE lb_file_app_user OWNER TO postgres;
453 554
454 -- 555 --
455 -- Name: lb_file_log_lbconverter; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 556 -- 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(&#39;lb_txt_idx_ @@ -574,6 +675,7 @@ ALTER TABLE ONLY lb_txt_idx ALTER COLUMN id_idx SET DEFAULT nextval(&#39;lb_txt_idx_
574 -- 675 --
575 676
576 COPY alembic_version (version_num) FROM stdin; 677 COPY alembic_version (version_num) FROM stdin;
  678 +541f8046f693
577 \. 679 \.
578 680
579 681
@@ -582,13 +684,16 @@ COPY alembic_version (version_num) FROM stdin; @@ -582,13 +684,16 @@ COPY alembic_version (version_num) FROM stdin;
582 -- 684 --
583 685
584 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; 686 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;
585 -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  
586 -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  
587 -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  
588 -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  
589 -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  
590 -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  
591 -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 687 +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
  688 +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
  689 +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
  690 +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
  691 +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
  692 +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
  693 +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
  694 +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
  695 +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
  696 +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
592 \. 697 \.
593 698
594 699
@@ -596,11 +701,26 @@ COPY lb_base (id_base, name, struct, dt_base, idx_exp, idx_exp_url, idx_exp_time @@ -596,11 +701,26 @@ COPY lb_base (id_base, name, struct, dt_base, idx_exp, idx_exp_url, idx_exp_time
596 -- Name: lb_base_id_base_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 701 -- Name: lb_base_id_base_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
597 -- 702 --
598 703
599 -SELECT pg_catalog.setval('lb_base_id_base_seq', 7, true); 704 +SELECT pg_catalog.setval('lb_base_id_base_seq', 10, true);
600 705
601 706
602 -- 707 --
603 --- Data for Name: lb_doc__form; Type: TABLE DATA; Schema: public; Owner: lbu 708 +-- Data for Name: lb_doc__app_config; Type: TABLE DATA; Schema: public; Owner: postgres
  709 +--
  710 +
  711 +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;
  712 +\.
  713 +
  714 +
  715 +--
  716 +-- Name: lb_doc__app_config_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  717 +--
  718 +
  719 +SELECT pg_catalog.setval('lb_doc__app_config_id_doc_seq', 1, false);
  720 +
  721 +
  722 +--
  723 +-- Data for Name: lb_doc__form; Type: TABLE DATA; Schema: public; Owner: postgres
604 -- 724 --
605 725
606 COPY lb_doc__form (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin; 726 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 @@ -608,7 +728,7 @@ COPY lb_doc__form (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM st
608 728
609 729
610 -- 730 --
611 --- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu 731 +-- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
612 -- 732 --
613 733
614 SELECT pg_catalog.setval('lb_doc__form_id_doc_seq', 1, false); 734 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 @@ -626,11 +746,26 @@ COPY lb_doc__history (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM
626 -- Name: lb_doc__history_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 746 -- Name: lb_doc__history_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
627 -- 747 --
628 748
629 -SELECT pg_catalog.setval('lb_doc__history_id_doc_seq', 1134, true); 749 +SELECT pg_catalog.setval('lb_doc__history_id_doc_seq', 1, false);
  750 +
  751 +
  752 +--
  753 +-- Data for Name: lb_doc__portal; Type: TABLE DATA; Schema: public; Owner: postgres
  754 +--
  755 +
  756 +COPY lb_doc__portal (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, cpf_user, nm_portal) FROM stdin;
  757 +\.
  758 +
  759 +
  760 +--
  761 +-- Name: lb_doc__portal_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  762 +--
  763 +
  764 +SELECT pg_catalog.setval('lb_doc__portal_id_doc_seq', 1, false);
630 765
631 766
632 -- 767 --
633 --- Data for Name: lb_doc__report; Type: TABLE DATA; Schema: public; Owner: lbu 768 +-- Data for Name: lb_doc__report; Type: TABLE DATA; Schema: public; Owner: postgres
634 -- 769 --
635 770
636 COPY lb_doc__report (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin; 771 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 @@ -638,14 +773,14 @@ COPY lb_doc__report (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM
638 773
639 774
640 -- 775 --
641 --- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu 776 +-- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
642 -- 777 --
643 778
644 SELECT pg_catalog.setval('lb_doc__report_id_doc_seq', 1, false); 779 SELECT pg_catalog.setval('lb_doc__report_id_doc_seq', 1, false);
645 780
646 781
647 -- 782 --
648 --- Data for Name: lb_doc__search; Type: TABLE DATA; Schema: public; Owner: lbu 783 +-- Data for Name: lb_doc__search; Type: TABLE DATA; Schema: public; Owner: postgres
649 -- 784 --
650 785
651 COPY lb_doc__search (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin; 786 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 @@ -653,7 +788,7 @@ COPY lb_doc__search (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM
653 788
654 789
655 -- 790 --
656 --- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu 791 +-- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
657 -- 792 --
658 793
659 SELECT pg_catalog.setval('lb_doc__search_id_doc_seq', 1, false); 794 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 @@ -671,11 +806,11 @@ COPY lb_doc__user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, name_ba
671 -- Name: lb_doc__user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 806 -- Name: lb_doc__user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
672 -- 807 --
673 808
674 -SELECT pg_catalog.setval('lb_doc__user_id_doc_seq', 1, true); 809 +SELECT pg_catalog.setval('lb_doc__user_id_doc_seq', 1, false);
675 810
676 811
677 -- 812 --
678 --- Data for Name: lb_doc_app_user; Type: TABLE DATA; Schema: public; Owner: lbu 813 +-- Data for Name: lb_doc_app_user; Type: TABLE DATA; Schema: public; Owner: postgres
679 -- 814 --
680 815
681 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; 816 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 @@ -683,7 +818,7 @@ COPY lb_doc_app_user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, id_u
683 818
684 819
685 -- 820 --
686 --- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu 821 +-- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
687 -- 822 --
688 823
689 SELECT pg_catalog.setval('lb_doc_app_user_id_doc_seq', 1, false); 824 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 @@ -701,7 +836,7 @@ COPY lb_doc_log_lbconverter (id_doc, document, dt_doc, dt_last_up, dt_del, dt_id
701 -- Name: lb_doc_log_lbconverter_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 836 -- Name: lb_doc_log_lbconverter_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
702 -- 837 --
703 838
704 -SELECT pg_catalog.setval('lb_doc_log_lbconverter_id_doc_seq', 481444, true); 839 +SELECT pg_catalog.setval('lb_doc_log_lbconverter_id_doc_seq', 1, false);
705 840
706 841
707 -- 842 --
@@ -716,11 +851,19 @@ COPY lb_doc_log_lbindex (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, i @@ -716,11 +851,19 @@ COPY lb_doc_log_lbindex (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, i
716 -- Name: lb_doc_log_lbindex_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 851 -- Name: lb_doc_log_lbindex_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
717 -- 852 --
718 853
719 -SELECT pg_catalog.setval('lb_doc_log_lbindex_id_doc_seq', 620125, true); 854 +SELECT pg_catalog.setval('lb_doc_log_lbindex_id_doc_seq', 1, false);
720 855
721 856
722 -- 857 --
723 --- Data for Name: lb_file__form; Type: TABLE DATA; Schema: public; Owner: lbu 858 +-- Data for Name: lb_file__app_config; Type: TABLE DATA; Schema: public; Owner: postgres
  859 +--
  860 +
  861 +COPY lb_file__app_config (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
  862 +\.
  863 +
  864 +
  865 +--
  866 +-- Data for Name: lb_file__form; Type: TABLE DATA; Schema: public; Owner: postgres
724 -- 867 --
725 868
726 COPY lb_file__form (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; 869 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 @@ -736,7 +879,15 @@ COPY lb_file__history (id_file, id_doc, filename, file, mimetype, filesize, file
736 879
737 880
738 -- 881 --
739 --- Data for Name: lb_file__report; Type: TABLE DATA; Schema: public; Owner: lbu 882 +-- Data for Name: lb_file__portal; Type: TABLE DATA; Schema: public; Owner: postgres
  883 +--
  884 +
  885 +COPY lb_file__portal (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
  886 +\.
  887 +
  888 +
  889 +--
  890 +-- Data for Name: lb_file__report; Type: TABLE DATA; Schema: public; Owner: postgres
740 -- 891 --
741 892
742 COPY lb_file__report (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; 893 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 @@ -744,7 +895,7 @@ COPY lb_file__report (id_file, id_doc, filename, file, mimetype, filesize, filet
744 895
745 896
746 -- 897 --
747 --- Data for Name: lb_file__search; Type: TABLE DATA; Schema: public; Owner: lbu 898 +-- Data for Name: lb_file__search; Type: TABLE DATA; Schema: public; Owner: postgres
748 -- 899 --
749 900
750 COPY lb_file__search (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; 901 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 @@ -760,7 +911,7 @@ COPY lb_file__user (id_file, id_doc, filename, file, mimetype, filesize, filetex
760 911
761 912
762 -- 913 --
763 --- Data for Name: lb_file_app_user; Type: TABLE DATA; Schema: public; Owner: lbu 914 +-- Data for Name: lb_file_app_user; Type: TABLE DATA; Schema: public; Owner: postgres
764 -- 915 --
765 916
766 COPY lb_file_app_user (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin; 917 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; @@ -795,7 +946,7 @@ COPY lb_index_error (id_error, base, id_doc, dt_error, msg_error) FROM stdin;
795 -- Name: lb_index_error_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 946 -- Name: lb_index_error_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
796 -- 947 --
797 948
798 -SELECT pg_catalog.setval('lb_index_error_seq', 3699, true); 949 +SELECT pg_catalog.setval('lb_index_error_seq', 1, false);
799 950
800 951
801 -- 952 --
@@ -830,7 +981,15 @@ ALTER TABLE ONLY lb_base @@ -830,7 +981,15 @@ ALTER TABLE ONLY lb_base
830 981
831 982
832 -- 983 --
833 --- Name: lb_doc__form_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 984 +-- Name: lb_doc__app_config_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  985 +--
  986 +
  987 +ALTER TABLE ONLY lb_doc__app_config
  988 + ADD CONSTRAINT lb_doc__app_config_pkey PRIMARY KEY (id_doc);
  989 +
  990 +
  991 +--
  992 +-- Name: lb_doc__form_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
834 -- 993 --
835 994
836 ALTER TABLE ONLY lb_doc__form 995 ALTER TABLE ONLY lb_doc__form
@@ -846,7 +1005,15 @@ ALTER TABLE ONLY lb_doc__history @@ -846,7 +1005,15 @@ ALTER TABLE ONLY lb_doc__history
846 1005
847 1006
848 -- 1007 --
849 --- Name: lb_doc__report_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1008 +-- Name: lb_doc__portal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  1009 +--
  1010 +
  1011 +ALTER TABLE ONLY lb_doc__portal
  1012 + ADD CONSTRAINT lb_doc__portal_pkey PRIMARY KEY (id_doc);
  1013 +
  1014 +
  1015 +--
  1016 +-- Name: lb_doc__report_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
850 -- 1017 --
851 1018
852 ALTER TABLE ONLY lb_doc__report 1019 ALTER TABLE ONLY lb_doc__report
@@ -854,7 +1021,7 @@ ALTER TABLE ONLY lb_doc__report @@ -854,7 +1021,7 @@ ALTER TABLE ONLY lb_doc__report
854 1021
855 1022
856 -- 1023 --
857 --- Name: lb_doc__search_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1024 +-- Name: lb_doc__search_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
858 -- 1025 --
859 1026
860 ALTER TABLE ONLY lb_doc__search 1027 ALTER TABLE ONLY lb_doc__search
@@ -870,7 +1037,7 @@ ALTER TABLE ONLY lb_doc__user @@ -870,7 +1037,7 @@ ALTER TABLE ONLY lb_doc__user
870 1037
871 1038
872 -- 1039 --
873 --- Name: lb_doc_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1040 +-- Name: lb_doc_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
874 -- 1041 --
875 1042
876 ALTER TABLE ONLY lb_doc_app_user 1043 ALTER TABLE ONLY lb_doc_app_user
@@ -894,7 +1061,15 @@ ALTER TABLE ONLY lb_doc_log_lbindex @@ -894,7 +1061,15 @@ ALTER TABLE ONLY lb_doc_log_lbindex
894 1061
895 1062
896 -- 1063 --
897 --- Name: lb_file__form_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1064 +-- Name: lb_file__app_config_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  1065 +--
  1066 +
  1067 +ALTER TABLE ONLY lb_file__app_config
  1068 + ADD CONSTRAINT lb_file__app_config_pkey PRIMARY KEY (id_file);
  1069 +
  1070 +
  1071 +--
  1072 +-- Name: lb_file__form_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
898 -- 1073 --
899 1074
900 ALTER TABLE ONLY lb_file__form 1075 ALTER TABLE ONLY lb_file__form
@@ -910,7 +1085,15 @@ ALTER TABLE ONLY lb_file__history @@ -910,7 +1085,15 @@ ALTER TABLE ONLY lb_file__history
910 1085
911 1086
912 -- 1087 --
913 --- Name: lb_file__report_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1088 +-- Name: lb_file__portal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
  1089 +--
  1090 +
  1091 +ALTER TABLE ONLY lb_file__portal
  1092 + ADD CONSTRAINT lb_file__portal_pkey PRIMARY KEY (id_file);
  1093 +
  1094 +
  1095 +--
  1096 +-- Name: lb_file__report_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
914 -- 1097 --
915 1098
916 ALTER TABLE ONLY lb_file__report 1099 ALTER TABLE ONLY lb_file__report
@@ -918,7 +1101,7 @@ ALTER TABLE ONLY lb_file__report @@ -918,7 +1101,7 @@ ALTER TABLE ONLY lb_file__report
918 1101
919 1102
920 -- 1103 --
921 --- Name: lb_file__search_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1104 +-- Name: lb_file__search_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
922 -- 1105 --
923 1106
924 ALTER TABLE ONLY lb_file__search 1107 ALTER TABLE ONLY lb_file__search
@@ -934,7 +1117,7 @@ ALTER TABLE ONLY lb_file__user @@ -934,7 +1117,7 @@ ALTER TABLE ONLY lb_file__user
934 1117
935 1118
936 -- 1119 --
937 --- Name: lb_file_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace: 1120 +-- Name: lb_file_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
938 -- 1121 --
939 1122
940 ALTER TABLE ONLY lb_file_app_user 1123 ALTER TABLE ONLY lb_file_app_user
liblightbase.tar.gz
No preview for this file type
other-srcs-n-apps/lbg.conf-apache-mod_wsgi-dist
1 -# Use only 1 Python sub-interpreter. Multiple sub-interpreters 1 +# Use only 1 Python sub-interpreter. Multiple sub-interpreters
2 # play badly with C extensions. 2 # play badly with C extensions.
3 3
4 Listen <HTTP_PORT_A> 4 Listen <HTTP_PORT_A>
@@ -12,10 +12,10 @@ ServerName 127.0.0.1 @@ -12,10 +12,10 @@ ServerName 127.0.0.1
12 12
13 WSGIApplicationGroup %{GLOBAL} 13 WSGIApplicationGroup %{GLOBAL}
14 WSGIPassAuthorization On 14 WSGIPassAuthorization On
15 -WSGIDaemonProcess <APP_ROOT_F> user=<HTTPD_USR> group=<HTTPD_GRP> threads=8 python-path=<VE32_PATH>/lib/python3.2/site-packages  
16 -WSGIScriptAlias /<APP_ROOT_F> <VE32_PATH>/src/LBGenerator/lbgenerator.wsgi 15 +WSGIDaemonProcess <APP_ROOT_F> user=<HTTPD_USR> group=<HTTPD_GRP> threads=8 python-path=<LBG_VE32_PATH>/lib/python3.2/site-packages
  16 +WSGIScriptAlias /<APP_ROOT_F> <LBG_VE32_PATH>/src/LBGenerator/lbgenerator.wsgi
17 17
18 -<Directory <VE32_PATH>> 18 +<Directory <LBG_VE32_PATH>>
19 WSGIProcessGroup <APP_ROOT_F> 19 WSGIProcessGroup <APP_ROOT_F>
20 <DIR_RULES> 20 <DIR_RULES>
21 </Directory> 21 </Directory>
other-srcs-n-apps/lbg.conf-ngix-pserve-dist
@@ -11,7 +11,7 @@ server { @@ -11,7 +11,7 @@ server {
11 # Do not log problems with the "favicon.ico". 11 # Do not log problems with the "favicon.ico".
12 location = /favicon.ico { access_log off; log_not_found off; } 12 location = /favicon.ico { access_log off; log_not_found off; }
13 13
14 - access_log /var/log/nginx/lbgenerator-access.log; 14 + access_log /var/log/nginx/lbg-access.log;
15 15
16 location /<APP_ROOT_F> { 16 location /<APP_ROOT_F> {
17 proxy_set_header Host $http_host; 17 proxy_set_header Host $http_host;
other-srcs-n-apps/lbg.conf-ngix-uwsgi-dist
@@ -8,7 +8,7 @@ server { @@ -8,7 +8,7 @@ server {
8 # Do not log problems with the "favicon.ico". 8 # Do not log problems with the "favicon.ico".
9 location = /favicon.ico { access_log off; log_not_found off; } 9 location = /favicon.ico { access_log off; log_not_found off; }
10 10
11 - access_log /var/log/nginx/lbgenerator-access.log; 11 + access_log /var/log/nginx/lbg-access.log;
12 12
13 location /<APP_ROOT_F> { 13 location /<APP_ROOT_F> {
14 add_header uWSGI $upstream_addr; 14 add_header uWSGI $upstream_addr;
other-srcs-n-apps/lbg.conf-supervisord-dist
1 [program:lbgenerator] 1 [program:lbgenerator]
2 autorestart=true 2 autorestart=true
3 -command=<VE_32_PATH>/bin/pserve <VE_32_PATH>/src/LBGenerator/production.ini http_port=50%(process_num)02d 3 +command=<LBG_VE32_PATH>/bin/pserve <LBG_VE32_PATH>/src/LBGenerator/production.ini http_port=50%(process_num)02d
4 process_name=%(program_name)s-%(process_num)01d 4 process_name=%(program_name)s-%(process_num)01d
5 numprocs=<NUM_OF_PROCS> 5 numprocs=<NUM_OF_PROCS>
6 numprocs_start=0 6 numprocs_start=0
7 redirect_stderr=true 7 redirect_stderr=true
8 stdout_logfile=/var/log/%(program_name)s-%(process_num)01d.log 8 stdout_logfile=/var/log/%(program_name)s-%(process_num)01d.log
9 -  
other-srcs-n-apps/production.ini.uwsgi.srv-dist
1 [uwsgi] 1 [uwsgi]
2 -emperor=<VE32_PATH>/src/uWSGI/vassals 2 +emperor=<UWSGI_VE32_PATH>/src/uWSGI/vassals
3 3
4 # NOTE: Embora esses usuários estejam criados eles são problemáticos. Então 4 # NOTE: Embora esses usuários estejam criados eles são problemáticos. Então
5 # preferimos manter o usuário que inicia o serviço (seja de sistema ou não)! 5 # preferimos manter o usuário que inicia o serviço (seja de sistema ou não)!
other-srcs-n-apps/supervisord-SLES-dist
@@ -27,7 +27,6 @@ ulimit -n 96000 @@ -27,7 +27,6 @@ ulimit -n 96000
27 27
28 RETVAL=0 28 RETVAL=0
29 29
30 -  
31 running_pid() 30 running_pid()
32 { 31 {
33 # Check if a given process pid's cmdline matches a given name. 32 # Check if a given process pid's cmdline matches a given name.
other-srcs-n-apps/uwsgi-DEB-dist
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 10
11 PATH=/opt/uwsgi:/sbin:/bin:/usr/sbin:/usr/bin 11 PATH=/opt/uwsgi:/sbin:/bin:/usr/sbin:/usr/bin
12 12
13 -DAEMON="<VE32_PATH>/bin/uwsgi" 13 +DAEMON="<UWSGI_VE32_PATH>/bin/uwsgi"
14 NAME=uwsgi 14 NAME=uwsgi
15 DESC=uwsgi 15 DESC=uwsgi
16 16
@@ -23,7 +23,7 @@ fi @@ -23,7 +23,7 @@ fi
23 23
24 set -e 24 set -e
25 25
26 -DAEMON_OPTS="--ini <VE32_PATH>/src/uWSGI/production.ini" 26 +DAEMON_OPTS="--ini <UWSGI_VE32_PATH>/src/uWSGI/production.ini"
27 27
28 case "$1" in 28 case "$1" in
29 start) 29 start)
other-srcs-n-apps/uwsgi-RHEL-dist
@@ -12,10 +12,10 @@ @@ -12,10 +12,10 @@
12 # Check that networking is up. 12 # Check that networking is up.
13 [ "$NETWORKING" = "no" ] && exit 0 13 [ "$NETWORKING" = "no" ] && exit 0
14 14
15 -uwsgi="<VE32_PATH>/bin/uwsgi" 15 +uwsgi="<UWSGI_VE32_PATH>/bin/uwsgi"
16 prog=$(basename $uwsgi) 16 prog=$(basename $uwsgi)
17 17
18 -UWSGI_CONF_FILE="<VE32_PATH>/src/uWSGI/production.ini" 18 +UWSGI_CONF_FILE="<UWSGI_VE32_PATH>/src/uWSGI/production.ini"
19 19
20 lockfile=/var/run/uwsgi.lock 20 lockfile=/var/run/uwsgi.lock
21 pidfile=/var/run/uwsgi.pid 21 pidfile=/var/run/uwsgi.pid
other-srcs-n-apps/uwsgi-SLES-dist
@@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
3 # description: Use uwsgi to run python and wsgi web apps. 3 # description: Use uwsgi to run python and wsgi web apps.
4 # processname: uwsgi 4 # processname: uwsgi
5 5
6 -UWSGI_BIN="<VE32_PATH>/bin/uwsgi"  
7 -UWSGI_OPTIONS="--ini <VE32_PATH>/src/uWSGI/production.ini" 6 +UWSGI_BIN="<UWSGI_VE32_PATH>/bin/uwsgi"
  7 +UWSGI_OPTIONS="--ini <UWSGI_VE32_PATH>/src/uWSGI/production.ini"
8 test -x $UWSGI_BIN || { echo "$UWSGI_BIN not installed"; 8 test -x $UWSGI_BIN || { echo "$UWSGI_BIN not installed";
9 if [ "$1" = "stop" ]; then exit 0; 9 if [ "$1" = "stop" ]; then exit 0;
10 else exit 5; fi; } 10 else exit 5; fi; }
py-packs-LBGenerator.bash
@@ -44,121 +44,121 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then @@ -44,121 +44,121 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then
44 44
45 tar -zxvf ./SQLAlchemy-0.9.4.tar.gz 45 tar -zxvf ./SQLAlchemy-0.9.4.tar.gz
46 cd ./SQLAlchemy-0.9.4 46 cd ./SQLAlchemy-0.9.4
47 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 47 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
48 cd .. 48 cd ..
49 rm -rf ./SQLAlchemy-0.9.4 49 rm -rf ./SQLAlchemy-0.9.4
50 50
51 tar -zxvf ./Mako-1.0.1.tar.gz 51 tar -zxvf ./Mako-1.0.1.tar.gz
52 cd ./Mako-1.0.1 52 cd ./Mako-1.0.1
53 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 53 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
54 cd .. 54 cd ..
55 rm -rf ./Mako-1.0.1 55 rm -rf ./Mako-1.0.1
56 56
57 tar -zxvf ./alembic-0.6.7.tar.gz 57 tar -zxvf ./alembic-0.6.7.tar.gz
58 cd ./alembic-0.6.7 58 cd ./alembic-0.6.7
59 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 59 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
60 cd .. 60 cd ..
61 rm -rf ./alembic-0.6.7 61 rm -rf ./alembic-0.6.7
62 62
63 tar -zxvf ./Beaker-1.7.0.tar.gz 63 tar -zxvf ./Beaker-1.7.0.tar.gz
64 cd ./Beaker-1.7.0 64 cd ./Beaker-1.7.0
65 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 65 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
66 cd .. 66 cd ..
67 rm -rf ./Beaker-1.7.0 67 rm -rf ./Beaker-1.7.0
68 68
69 tar -zxvf ./PasteDeploy-1.5.2.tar.gz 69 tar -zxvf ./PasteDeploy-1.5.2.tar.gz
70 cd ./PasteDeploy-1.5.2 70 cd ./PasteDeploy-1.5.2
71 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 71 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
72 cd .. 72 cd ..
73 rm -rf ./PasteDeploy-1.5.2 73 rm -rf ./PasteDeploy-1.5.2
74 74
75 tar -zxvf ./psycopg2-2.5.3.tar.gz 75 tar -zxvf ./psycopg2-2.5.3.tar.gz
76 cd ./psycopg2-2.5.3 76 cd ./psycopg2-2.5.3
77 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 77 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
78 cd .. 78 cd ..
79 rm -rf ./psycopg2-2.5.3 79 rm -rf ./psycopg2-2.5.3
80 80
81 tar -zxvf ./WebOb-1.4.tar.gz 81 tar -zxvf ./WebOb-1.4.tar.gz
82 cd ./WebOb-1.4 82 cd ./WebOb-1.4
83 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 83 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
84 cd .. 84 cd ..
85 rm -rf ./WebOb-1.4 85 rm -rf ./WebOb-1.4
86 86
87 tar -zxvf ./translationstring-1.1.tar.gz 87 tar -zxvf ./translationstring-1.1.tar.gz
88 cd ./translationstring-1.1 88 cd ./translationstring-1.1
89 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 89 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
90 cd .. 90 cd ..
91 rm -rf ./translationstring-1.1 91 rm -rf ./translationstring-1.1
92 92
93 tar -zxvf ./venusian-1.0a8.tar.gz 93 tar -zxvf ./venusian-1.0a8.tar.gz
94 cd ./venusian-1.0a8 94 cd ./venusian-1.0a8
95 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 95 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
96 cd .. 96 cd ..
97 rm -rf ./venusian-1.0a8 97 rm -rf ./venusian-1.0a8
98 98
99 tar -zxvf ./waitress-0.8.9.tar.gz 99 tar -zxvf ./waitress-0.8.9.tar.gz
100 cd ./waitress-0.8.9 100 cd ./waitress-0.8.9
101 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 101 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
102 cd .. 102 cd ..
103 rm -rf ./waitress-0.8.9 103 rm -rf ./waitress-0.8.9
104 104
105 tar -zxvf ./zope.deprecation-4.1.1.tar.gz 105 tar -zxvf ./zope.deprecation-4.1.1.tar.gz
106 cd ./zope.deprecation-4.1.1 106 cd ./zope.deprecation-4.1.1
107 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 107 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
108 cd .. 108 cd ..
109 rm -rf ./zope.deprecation-4.1.1 109 rm -rf ./zope.deprecation-4.1.1
110 110
111 tar -zxvf ./zope.interface-4.1.1.tar.gz 111 tar -zxvf ./zope.interface-4.1.1.tar.gz
112 cd ./zope.interface-4.1.1 112 cd ./zope.interface-4.1.1
113 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 113 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
114 cd .. 114 cd ..
115 rm -rf ./zope.interface-4.1.1 115 rm -rf ./zope.interface-4.1.1
116 116
117 tar -zxvf ./repoze.lru-0.6.tar.gz 117 tar -zxvf ./repoze.lru-0.6.tar.gz
118 cd ./repoze.lru-0.6 118 cd ./repoze.lru-0.6
119 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 119 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
120 cd .. 120 cd ..
121 rm -rf ./repoze.lru-0.6 121 rm -rf ./repoze.lru-0.6
122 122
123 tar -zxvf ./pyramid-1.5.1.tar.gz 123 tar -zxvf ./pyramid-1.5.1.tar.gz
124 cd ./pyramid-1.5.1 124 cd ./pyramid-1.5.1
125 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 125 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
126 cd .. 126 cd ..
127 rm -rf ./pyramid-1.5.1 127 rm -rf ./pyramid-1.5.1
128 128
129 tar -zxvf ./pyramid_beaker-0.8.tar.gz 129 tar -zxvf ./pyramid_beaker-0.8.tar.gz
130 cd ./pyramid_beaker-0.8 130 cd ./pyramid_beaker-0.8
131 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 131 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
132 cd .. 132 cd ..
133 rm -rf ./pyramid_beaker-0.8 133 rm -rf ./pyramid_beaker-0.8
134 134
135 tar -zxvf ./pyramid_restler-0.1a4.tar.gz 135 tar -zxvf ./pyramid_restler-0.1a4.tar.gz
136 cd ./pyramid_restler-0.1a4 136 cd ./pyramid_restler-0.1a4
137 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 137 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
138 cd .. 138 cd ..
139 rm -rf ./pyramid_restler-0.1a4 139 rm -rf ./pyramid_restler-0.1a4
140 140
141 tar -zxvf ./requests-2.3.0.tar.gz 141 tar -zxvf ./requests-2.3.0.tar.gz
142 cd ./requests-2.3.0 142 cd ./requests-2.3.0
143 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 143 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
144 cd .. 144 cd ..
145 rm -rf ./requests-2.3.0 145 rm -rf ./requests-2.3.0
146 146
147 tar -zxvf ./voluptuous-0.8.7.tar.gz 147 tar -zxvf ./voluptuous-0.8.7.tar.gz
148 cd ./voluptuous-0.8.7 148 cd ./voluptuous-0.8.7
149 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 149 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
150 cd .. 150 cd ..
151 rm -rf ./voluptuous-0.8.7 151 rm -rf ./voluptuous-0.8.7
152 152
153 tar -zxvf ./Pympler-0.4.3.tar.gz 153 tar -zxvf ./Pympler-0.4.3.tar.gz
154 cd ./Pympler-0.4.3 154 cd ./Pympler-0.4.3
155 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 155 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
156 cd .. 156 cd ..
157 rm -rf ./Pympler-0.4.3 157 rm -rf ./Pympler-0.4.3
158 158
159 tar -zxvf ./repoze.profile-2.2.tar.gz 159 tar -zxvf ./repoze.profile-2.2.tar.gz
160 cd ./repoze.profile-2.2 160 cd ./repoze.profile-2.2
161 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 161 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
162 cd .. 162 cd ..
163 rm -rf ./repoze.profile-2.2 163 rm -rf ./repoze.profile-2.2
164 164
py-packs-liblightbase.bash
@@ -44,43 +44,43 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then @@ -44,43 +44,43 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then
44 44
45 tar -zxvf ./decorator-3.4.0.tar.gz 45 tar -zxvf ./decorator-3.4.0.tar.gz
46 cd ./decorator-3.4.0 46 cd ./decorator-3.4.0
47 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 47 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
48 cd .. 48 cd ..
49 rm -rf ./decorator-3.4.0 49 rm -rf ./decorator-3.4.0
50 50
51 tar -zxvf ./six-1.7.2.tar.gz 51 tar -zxvf ./six-1.7.2.tar.gz
52 cd ./six-1.7.2 52 cd ./six-1.7.2
53 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 53 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
54 cd .. 54 cd ..
55 rm -rf ./six-1.7.2 55 rm -rf ./six-1.7.2
56 56
57 tar -zxvf ./ply-3.4.tar.gz 57 tar -zxvf ./ply-3.4.tar.gz
58 cd ./ply-3.4 58 cd ./ply-3.4
59 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 59 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
60 cd .. 60 cd ..
61 rm -rf ./ply-3.4 61 rm -rf ./ply-3.4
62 62
63 tar -zxvf ./jsonpath-rw-1.3.0.tar.gz 63 tar -zxvf ./jsonpath-rw-1.3.0.tar.gz
64 cd ./jsonpath-rw-1.3.0 64 cd ./jsonpath-rw-1.3.0
65 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 65 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
66 cd .. 66 cd ..
67 rm -rf ./jsonpath-rw-1.3.0 67 rm -rf ./jsonpath-rw-1.3.0
68 68
69 tar -zxvf ./python-dateutil-2.2.tar.gz 69 tar -zxvf ./python-dateutil-2.2.tar.gz
70 cd ./python-dateutil-2.2 70 cd ./python-dateutil-2.2
71 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 71 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
72 cd .. 72 cd ..
73 rm -rf ./python-dateutil-2.2 73 rm -rf ./python-dateutil-2.2
74 74
75 tar -zxvf ./requests-2.3.0.tar.gz 75 tar -zxvf ./requests-2.3.0.tar.gz
76 cd ./requests-2.3.0 76 cd ./requests-2.3.0
77 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 77 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
78 cd .. 78 cd ..
79 rm -rf ./requests-2.3.0 79 rm -rf ./requests-2.3.0
80 80
81 tar -zxvf ./voluptuous-0.8.7.tar.gz 81 tar -zxvf ./voluptuous-0.8.7.tar.gz
82 cd ./voluptuous-0.8.7 82 cd ./voluptuous-0.8.7
83 - eval "$BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 83 + eval "$BASE_INST_DIR_V/lbg_ve32/bin/python3.2 setup.py install"
84 cd .. 84 cd ..
85 rm -rf ./voluptuous-0.8.7 85 rm -rf ./voluptuous-0.8.7
86 86
py-packs-supervisor.bash
@@ -37,7 +37,7 @@ fi @@ -37,7 +37,7 @@ fi
37 37
38 VE_2_X=$4 38 VE_2_X=$4
39 if [ -z "$VE_2_X" ] ; then 39 if [ -z "$VE_2_X" ] ; then
40 - VE_2_X="ve26" 40 + VE_2_X="lbg_ve26"
41 fi 41 fi
42 42
43 f_open_section 43 f_open_section
py-packs-uwsgi.bash
@@ -44,7 +44,7 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then @@ -44,7 +44,7 @@ if [ ${YES_NO_R} -eq 1 ] || [ ${EZ_I_SKIP_ON_V} -eq 1 ] ; then
44 44
45 tar -zxvf ./uwsgi-2.0.13.1.tar.gz 45 tar -zxvf ./uwsgi-2.0.13.1.tar.gz
46 cd ./uwsgi-2.0.13.1 46 cd ./uwsgi-2.0.13.1
47 - eval "CFLAGS=\"-Wno-format\" $BASE_INST_DIR_V/ve32/bin/python3.2 setup.py install" 47 + eval "CFLAGS=\"-Wno-format\" $BASE_INST_DIR_V/uwsgi_ve32/bin/python3.2 setup.py install"
48 cd .. 48 cd ..
49 rm -rf ./uwsgi-2.0.13.1 49 rm -rf ./uwsgi-2.0.13.1
50 50
tux.txt 0 → 100755
@@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
  1 +
  2 +
  3 + .~. Have fun! =D
  4 + /V\
  5 + // \\ Tux
  6 +/( )\
  7 + ^`~'^
0 \ No newline at end of file 8 \ No newline at end of file