Remove wrong code comment

This commit is contained in:
MaxJa4 2022-02-08 18:19:32 +01:00 committed by GitHub
parent a35aa953b4
commit cb755a47bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ echo "Waiting for database to be ready..."
attempt=0 attempt=0
max_attempts=20 max_attempts=20
while pg_isready --host=${POSTGRES_HOST} -q; status=$?; attempt=$((attempt+1)); [ $status -ne 0 ] && [ $attempt -le $max_attempts ]; do while pg_isready --host=${POSTGRES_HOST} -q; status=$?; attempt=$((attempt+1)); [ $status -ne 0 ] && [ $attempt -le $max_attempts ]; do
sleep 5 # no echo needed, response comes from pg_isready already sleep 5
done done
if [ $attempt -gt $max_attempts ]; then if [ $attempt -gt $max_attempts ]; then
@ -32,4 +32,4 @@ echo "Done"
chmod -R 755 /opt/recipes/mediafiles chmod -R 755 /opt/recipes/mediafiles
exec gunicorn -b :8080 --access-logfile - --error-logfile - --log-level INFO recipes.wsgi exec gunicorn -b :8080 --access-logfile - --error-logfile - --log-level INFO recipes.wsgi