mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
1. centos has symlinks /bin->usr/bin and /sbin -> usr/sbin,
but even if this script called as /bin/mysql_install_db it is still standard install and scripts are in /usr/share/ (but not in the /share/) 2. fix of bindir path
This commit is contained in:
@ -302,6 +302,8 @@ fi
|
||||
parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mysql_install_db`
|
||||
parse_arguments PICK-ARGS-FROM-ARGV "$@"
|
||||
|
||||
rel_mysqld="$dirname0/@INSTALL_SBINDIR@/mysqld"
|
||||
|
||||
# Configure paths to support files
|
||||
if test -n "$srcdir"
|
||||
then
|
||||
@ -341,12 +343,12 @@ then
|
||||
exit 1
|
||||
fi
|
||||
# relative from where the script was run for a relocatable install
|
||||
elif test -n "$dirname0" -a -x "$dirname0/@INSTALL_SBINDIR@/mysqld"
|
||||
elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mysqld"
|
||||
then
|
||||
basedir="$dirname0"
|
||||
bindir="$basedir/@INSTALL_SBINDIR@"
|
||||
bindir="$basedir/@INSTALL_BINDIR@"
|
||||
resolveip="$bindir/resolveip"
|
||||
mysqld="$basedir/@INSTALL_SBINDIR@/mysqld"
|
||||
mysqld="$rel_mysqld"
|
||||
srcpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
|
||||
buildpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
|
||||
else
|
||||
|
Reference in New Issue
Block a user