Skip to content

Commit

Permalink
[EIC-650] Implementar conexao slave (somente leitura)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoapaes committed Apr 19, 2021
1 parent c1f119f commit 4e3fd31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sh/configure-db-ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ crudini --set ${1} bd user ${DB_USER};
crudini --set ${1} bd password ${DB_PASSWORD};
crudini --set ${1} bd bd ${DB_NAME};

if [ -n "$DB_HOST_SLAVE" ]; then
crudini --set ${1} bd hostSlave ${DB_HOST_SLAVE};
fi

if [ -n "$SOCKET_HOST" ]; then
crudini --set ${1} socket host ${SOCKET_HOST};
fi

0 comments on commit 4e3fd31

Please sign in to comment.