Skip to content

Commit 8f0a3c6

Browse files
authored
fix(docker-entrypoint): search new directory for socket cleanup (#724)
This adapts the fix from d3411e0 to additionally search $PREFIX/sockets for leftover unix sockets. See also: Kong/kong#13409
1 parent 1f5199f commit 8f0a3c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if [[ "$1" == "kong" ]]; then
4646

4747
# remove all dangling sockets in $PREFIX dir before starting Kong
4848
LOGGED_SOCKET_WARNING=0
49-
for localfile in "$PREFIX"/*; do
49+
for localfile in "$PREFIX"/* "$PREFIX"/sockets/*; do
5050
if [ -S "$localfile" ]; then
5151
if (( LOGGED_SOCKET_WARNING == 0 )); then
5252
printf >&2 'WARN: found dangling unix sockets in the prefix directory '

ubuntu/docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if [[ "$1" == "kong" ]]; then
4646

4747
# remove all dangling sockets in $PREFIX dir before starting Kong
4848
LOGGED_SOCKET_WARNING=0
49-
for localfile in "$PREFIX"/*; do
49+
for localfile in "$PREFIX"/* "$PREFIX"/sockets/*; do
5050
if [ -S "$localfile" ]; then
5151
if (( LOGGED_SOCKET_WARNING == 0 )); then
5252
printf >&2 'WARN: found dangling unix sockets in the prefix directory '

0 commit comments

Comments
 (0)