Skip to content

Commit b8ecadc

Browse files
committed
Remove MinIO connection validation from entrypoint script to streamline the initialization process.
1 parent e7f1060 commit b8ecadc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/entrypoint.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ set_mc_alias() {
121121
debug_print "Set alias with: mc alias set $MINIO_ALIAS $MINIO_HOST $MINIO_ADMIN_USER **********"
122122
}
123123

124-
validate_minio_connection() {
125-
debug_print "Validating MinIO connection..."
126-
if ! mc admin info "$MINIO_ALIAS" &>/dev/null; then
127-
echo "Error: Unable to connect to MinIO instance at $MINIO_HOST"
128-
echo "Please check the hostname and admin credentials"
129-
exit 1
130-
fi
131-
debug_print "Successfully connected to MinIO instance"
132-
}
133-
134124
################################################################################
135125
# Main
136126
################################################################################
@@ -155,7 +145,6 @@ mc --version
155145
echo "-----------------------------------------------------------"
156146

157147
set_mc_alias
158-
validate_minio_connection
159148

160149
# Check to see if user exists
161150
if mc admin user ls "$MINIO_ALIAS" | grep -q "$MINIO_USER_ACCESS_KEY"; then

0 commit comments

Comments
 (0)