mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-30 10:12:36 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			248 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			248 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| post_install() {
 | |
| 	sudo -u postgres psql <<- "EOF"
 | |
| 	DO $$
 | |
| 	BEGIN
 | |
| 	  CREATE ROLE kyoo WITH CREATEDB LOGIN PASSWORD 'kyooPassword';
 | |
| 	  EXCEPTION WHEN DUPLICATE_OBJECT THEN
 | |
| 	  RAISE NOTICE 'not creating role kyoo -- it already exists';
 | |
| 	END
 | |
| 	$$;
 | |
| 	EOF
 | |
| } |