Merge remote-tracking branch 'origin/master'
This commit is contained in:
		
							
								
								
									
										6
									
								
								production-dbshell.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								production-dbshell.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
export PGPASSWORD=$(grep "POSTGRES_PASSWORD" /production/ojuso-map/environment | cut -d= -f2-)
 | 
			
		||||
PGUSER=$(grep "POSTGRES_USER" /production/ojuso-map/environment | cut -d= -f2-)
 | 
			
		||||
 | 
			
		||||
psql --host=127.0.0.1 --port=5432 --username=$PGUSER
 | 
			
		||||
		Reference in New Issue
	
	Block a user