Index: mysql =================================================================== --- mysql (revision 628) +++ mysql (working copy) @@ -51,6 +51,7 @@ local datadir=$(get_config "${MY_CNF}" datadir | tail -n1) local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1) local socket=$(get_config "${MY_CNF}" socket | tail -n1) + local user=$(get_config "${MY_CNF}" user | tail -n1) if [ ! -d "${datadir}" ] ; then eerror "MySQL datadir \`${datadir}' is empty or invalid" @@ -65,7 +66,7 @@ fi local piddir="${pidfile%/*}" - checkpath -d --owner mysql:mysql --mode 0755 "$piddir" + checkpath -d --owner $user --mode 0755 "$piddir" rc=$? if [ $rc -ne 0 ]; then eerror "Directory $piddir for pidfile does not exist and cannot be created"