Commit 68e321c8 authored by Paulo Pereira's avatar Paulo Pereira
Browse files

feat: ajusta o max_connections do postgresql

parent e43fc409
......@@ -2,11 +2,14 @@
CONTAINER_RAILSSERVER_ID=$(docker ps | grep railsserver | awk '{print $1}')
CONTAINER_NGINX_ID=$(docker ps | grep nginx | awk '{print $1}')
CONTAINER_POSTGRESQL_ID=$(docker ps | grep postgres | awk '{print $1}')
if [ -z "$CONTAINER_RAILSSERVER_ID" ]
then
echo "Rails Container is not running"
else
docker exec $CONTAINER_POSTGRESQL_ID bash -c "sed -i '/max_connections/c\max_connections = 2000' /var/lib/postgresql/data/postgresql.conf"
BASE_DIR_ZAMMAD=$(docker inspect $CONTAINER_RAILSSERVER_ID | grep '"Source":' | awk {'print $2'} | tr -d '"' | tr -d ',')
echo "[COPYING CUSTOMIZED FILES TO CONTAINER'S VOLUME...] $(date)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment