Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 593046 | Differences between
and this patch

Collapse All | Expand All

(-)mysql (-1 / +2 lines)
Lines 51-56 Link Here
51
	local datadir=$(get_config "${MY_CNF}" datadir | tail -n1)
51
	local datadir=$(get_config "${MY_CNF}" datadir | tail -n1)
52
	local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
52
	local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
53
	local socket=$(get_config "${MY_CNF}" socket | tail -n1)
53
	local socket=$(get_config "${MY_CNF}" socket | tail -n1)
54
	local user=$(get_config "${MY_CNF}" user | tail -n1)
54
55
55
	if [ ! -d "${datadir}" ] ; then
56
	if [ ! -d "${datadir}" ] ; then
56
		eerror "MySQL datadir \`${datadir}' is empty or invalid"
57
		eerror "MySQL datadir \`${datadir}' is empty or invalid"
Lines 65-71 Link Here
65
	fi
66
	fi
66
67
67
	local piddir="${pidfile%/*}"
68
	local piddir="${pidfile%/*}"
68
	checkpath -d --owner mysql:mysql --mode 0755 "$piddir"
69
	checkpath -d --owner $user --mode 0755 "$piddir"
69
	rc=$?
70
	rc=$?
70
	if [ $rc -ne 0 ]; then
71
	if [ $rc -ne 0 ]; then
71
		eerror "Directory $piddir for pidfile does not exist and cannot be created"
72
		eerror "Directory $piddir for pidfile does not exist and cannot be created"

Return to bug 593046