diff --git a/centos/docker-entrypoint.sh b/centos/docker-entrypoint.sh index 93565ef6..a8a34a9e 100755 --- a/centos/docker-entrypoint.sh +++ b/centos/docker-entrypoint.sh @@ -49,6 +49,11 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + # For versions below 3.5.0 whose conf_server has not been removed. + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi diff --git a/debian-dev/docker-entrypoint.sh b/debian-dev/docker-entrypoint.sh index b9d54c44..e7fdc010 100755 --- a/debian-dev/docker-entrypoint.sh +++ b/debian-dev/docker-entrypoint.sh @@ -49,6 +49,11 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + # For versions below 3.5.0 whose conf_server has not been removed. + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty-debug/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi diff --git a/debian/docker-entrypoint.sh b/debian/docker-entrypoint.sh index 93565ef6..a8a34a9e 100755 --- a/debian/docker-entrypoint.sh +++ b/debian/docker-entrypoint.sh @@ -49,6 +49,11 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + # For versions below 3.5.0 whose conf_server has not been removed. + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi diff --git a/redhat/docker-entrypoint.sh b/redhat/docker-entrypoint.sh index 93565ef6..a8a34a9e 100755 --- a/redhat/docker-entrypoint.sh +++ b/redhat/docker-entrypoint.sh @@ -49,6 +49,11 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + # For versions below 3.5.0 whose conf_server has not been removed. + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi