9 lines
		
	
	
		
			185 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			185 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
echo "postgres starting..."
 | 
						|
 | 
						|
mkdir -p /state/db
 | 
						|
chown mastodon:mastodon /state/db
 | 
						|
exec chpst -u mastodon:mastodon /usr/lib/postgresql/bin/postmaster \
 | 
						|
   -D /state/db 2>&1
 |