Skip to content

Commit

Permalink
Display Attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-magas committed Jan 11, 2024
1 parent ae1d664 commit 4b8e9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Ping Database function
function pingdb {
OK=0
for i in $(seq 1 100); do
for count in $(seq 1 100); do
echo "Pinging database attempt ${count} into ${MOODLE_DB_HOST}:${MOODLE_DB_PORT}"
if $(php -r "is_resource(@fsockopen(\"${MOODLE_DB_HOST}\",intval(\"${MOODLE_DB_PORT}\")))?exit(0):exit(1);") ; then
echo "Can connect into database"
Expand Down

0 comments on commit 4b8e9e7

Please sign in to comment.