mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			443 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			443 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
#
 | 
						|
# postflight - this script will be executed after the MySQL PKG
 | 
						|
# installation has been performed.
 | 
						|
#
 | 
						|
# This script will install the MySQL privilege tables using the
 | 
						|
# "mysql_install_db" script and will correct the ownerships of these files
 | 
						|
# afterwards.
 | 
						|
#
 | 
						|
 | 
						|
if cd @prefix@ ; then
 | 
						|
	if [ ! -f data/mysql/db.frm ] ; then
 | 
						|
		./scripts/mysql_install_db --rpm
 | 
						|
	fi
 | 
						|
 | 
						|
	if [ -d data ] ; then
 | 
						|
		chown -R @MYSQLD_USER@ data
 | 
						|
	fi
 | 
						|
else
 | 
						|
	exit $?
 | 
						|
fi
 |