Browse Source

ajustes dos arquivos do logrotate

1.8-dev
douglas.strappasson 11 months ago
parent
commit
2bfb3de666
  1. 10
      asterisk/hdaux_utilitarios_scripts/credentials_db.sh
  2. 2
      asterisk/hdaux_utilitarios_scripts/temporizador_de_dados.sh

10
asterisk/hdaux_utilitarios_scripts/credentials_db.sh

@ -14,9 +14,9 @@
# Obtém os valores se as permissão de usuário ter acesso
PASSWORD_DB=$(awk -F \" '/^SENHA\=\"*\"/ {print $2}' /var/www/html/aplicativo/include/bd)
USER_DB=$(awk -F \" '/^USUARIO\=\"*\"/ {print $2}' /var/www/html/aplicativo/include/bd)
PORT_DB=$(awk -F \" '/^PORTA_DB\=\"*\"/ {print $2}' /var/www/html/aplicativo/include/bd)
BASE_DB=$(awk -F \" '/^BASE_DB\=\"*\"/ {print $2}' /var/www/html/aplicativo/include/bd)
HOST_DB=$(awk -F \" '/^HOST_DB\=\"*\"/ {print $2}' /var/www/html/aplicativo/include/bd)
PASSWORD_DB=$(awk -F \" '/^SENHA="*"/ {print $2}' /var/www/html/aplicativo/include/bd)
USER_DB=$(awk -F \" '/^USUARIO="*"/ {print $2}' /var/www/html/aplicativo/include/bd)
PORT_DB=$(awk -F \" '/^PORTA_DB="*"/ {print $2}' /var/www/html/aplicativo/include/bd)
BASE_DB=$(awk -F \" '/^BASE_DB="*"/ {print $2}' /var/www/html/aplicativo/include/bd)
HOST_DB=$(awk -F \" '/^HOST_DB="*"/ {print $2}' /var/www/html/aplicativo/include/bd)

2
asterisk/hdaux_utilitarios_scripts/temporizador_de_dados.sh

@ -61,7 +61,7 @@ pbx=("DELETE from pbx_audita_full where full_data_hora < " \
"DELETE from pbx_workflow_reg_envio_email where wkf_data_envio < " \
"DELETE from pbx_workflow_reg_envio_email_mensal where wkf_data_envio < "
"DELETE from pbx_eventos_dacs where to_timestamp(uid1::real) < "
"DELETE from pbx_abandonadas_status to_timestamp(uniqueid::real) < ")
"DELETE from pbx_abandonadas_status where to_timestamp(uniqueid::real) < ")
query_keep_data_days="select prm_log_dias from pbx_parametros;"

Loading…
Cancel
Save