mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			253 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			253 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| update-alternatives --auto mysqld 
 | |
| 
 | |
| if [ "$1" = "purge" ]
 | |
| then
 | |
| 	update-rc.d mysql remove >/dev/null
 | |
| 
 | |
| 	echo -n "  Shall I also remove all of the databases (y/N)?"; read ans
 | |
| 	if [ "$ans" = "y" -o "$ans" = "Y" ]; then
 | |
| 		rm -rf /var/mysql
 | |
| 	fi
 | |
| fi
 | 
