mirror of
				https://github.com/solero/wand.git
				synced 2025-11-04 06:32:04 +00:00 
			
		
		
		
	Use $POSTGRES_USER environment variable
				
					
				
			This commit is contained in:
		@@ -7,7 +7,7 @@ host="$1"
 | 
			
		||||
shift
 | 
			
		||||
cmd="$@"
 | 
			
		||||
  
 | 
			
		||||
until PGPASSWORD=$POSTGRES_PASSWORD psql -h "$host" -U "postgres" -c '\q'; do
 | 
			
		||||
until PGUSER=$POSTGRES_USER PGPASSWORD=$POSTGRES_PASSWORD psql -h "$host" -c '\q'; do
 | 
			
		||||
  >&2 echo "Postgres is unavailable - sleeping"
 | 
			
		||||
  sleep 1
 | 
			
		||||
done
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user