diff options
author | Brian Evans <grknight@gentoo.org> | 2017-10-02 11:18:54 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2017-10-02 11:20:44 -0400 |
commit | 8a176b6845cdfea34006db618985789ec05d606f (patch) | |
tree | 1fbb588b7d264abb496bdf7aef4413cce839b24f /dev-db | |
parent | mysql-{multilib,multilib-r1,v2}.eclass: Remove extra option (diff) | |
download | gentoo-8a176b6845cdfea34006db618985789ec05d606f.tar.gz gentoo-8a176b6845cdfea34006db618985789ec05d606f.tar.bz2 gentoo-8a176b6845cdfea34006db618985789ec05d606f.zip |
dev-db/mariadb: Move --user bootstrap option to later in the commands
Closes: https://bugs.gentoo.org/show_bug.cgi?id=632694
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mariadb/mariadb-10.2.9.ebuild | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-db/mariadb/mariadb-10.2.9.ebuild b/dev-db/mariadb/mariadb-10.2.9.ebuild index 8b02d53b17ab..a8b5b56814aa 100644 --- a/dev-db/mariadb/mariadb-10.2.9.ebuild +++ b/dev-db/mariadb/mariadb-10.2.9.ebuild @@ -929,8 +929,6 @@ pkg_config() { egrep -sq -- "${optexp}" "${helpfile}" && options="${options} ${optfull}" done - use prefix || options="${options} --user=mysql" - einfo "Creating the mysql database and setting proper permissions on it ..." # Now that /var/run is a tmpfs mount point, we need to ensure it exists before using it @@ -963,6 +961,8 @@ pkg_config() { [[ -f "${ROOT}/${MY_DATADIR}/mysql/user.frm" ]] \ || die "MySQL databases not installed" + use prefix || options="${options} --user=mysql" + local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock" local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid" local mysqld="${EROOT}/usr/sbin/mysqld \ |