forked from ungleich-public/cdist
		
	
					parent
					
						
							
								a85f2ebdb6
							
						
					
				
			
			
				commit
				
					
						c85dfbdb10
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -55,9 +55,9 @@ case "$state_should" in
 | 
			
		|||
        [ -n "$password" ] && password="PASSWORD '$password'"
 | 
			
		||||
 | 
			
		||||
        cmd="CREATE ROLE $name WITH $password $booleans"
 | 
			
		||||
        echo "su - '$postgres_user' -c \"psql postgres -c '$cmd'\""
 | 
			
		||||
        echo "su - '$postgres_user' -c \"psql -c \\\"$cmd\\\"\""
 | 
			
		||||
    ;;
 | 
			
		||||
    absent)
 | 
			
		||||
        echo "su - '$postgres_user' -c \"dropuser '$name'\""
 | 
			
		||||
        echo "su - '$postgres_user' -c \"dropuser \\\"$name\\\"\""
 | 
			
		||||
    ;;
 | 
			
		||||
esac
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue