Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Paulo Roberto Pereira da Silva
Script Customization Zammad
Commits
f6a09baf
Commit
f6a09baf
authored
Nov 10, 2022
by
Paulo Pereira
Browse files
fix: adiciona o comando de reiniciar o container do postgresql
parent
68e321c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
layout-customization/layout-std-customization.sh
View file @
f6a09baf
...
...
@@ -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
\m
ax_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
','
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment