Commit f6a09baf authored by Paulo Pereira's avatar Paulo Pereira
Browse files

fix: adiciona o comando de reiniciar o container do postgresql

parent 68e321c8
......@@ -8,7 +8,10 @@ if [ -z "$CONTAINER_RAILSSERVER_ID" ]
then
echo "Rails Container is not running"
else
echo "[INCREASING MAX CONNECTIONS POSTGRESQL...] $(date)"
docker exec $CONTAINER_POSTGRESQL_ID bash -c "sed -i '/max_connections/c\max_connections = 2000' /var/lib/postgresql/data/postgresql.conf"
docker restart $CONTAINER_POSTGRESQL_ID
sleep 10
BASE_DIR_ZAMMAD=$(docker inspect $CONTAINER_RAILSSERVER_ID | grep '"Source":' | awk {'print $2'} | tr -d '"' | tr -d ',')
......
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