You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-31 18:30:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			413 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			413 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
 | |
| rpmmode=upgrade
 | |
| if  [ "$1" -eq "$1" 2> /dev/null ]; then
 | |
| 	if [ $1 -ne 1 ]; then
 | |
| 		rpmmode=erase
 | |
| 	fi
 | |
| else
 | |
| 	rpmmode=erase
 | |
| fi
 | |
| 
 | |
| if [ $rpmmode = erase ]; then
 | |
| 	columnstore-pre-uninstall
 | |
| 
 | |
| 	# Best-effort removal of ColumnStore SELinux policy on erase
 | |
| 	if command -v semodule >/dev/null 2>&1; then
 | |
| 	  if semodule -l 2>/dev/null | grep -q '^columnstore\b'; then
 | |
| 	    semodule -r columnstore || true
 | |
| 	  fi
 | |
| 	fi
 | |
| fi
 | |
| 
 | |
| exit 0
 | |
| 
 |