You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# obtém as credenciais do banco de dados
|
|
|
|
# Sem necessidade de colocar essas informações no código
|
|
|
|
# inserir esse script
|
|
|
|
#
|
|
|
|
# . /hdaux/utilitarios/scripts/credentials_db.sh
|
|
|
|
#
|
|
|
|
# PASSWORD_DB
|
|
|
|
# USER_DB
|
|
|
|
# PORT_DB
|
|
|
|
# BASE_DB
|
|
|
|
# HOST_DB
|
|
|
|
# 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)
|
|
|
|
|
|
|
|
|