Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 714120 Details for
Bug 794697
dev-db/mysql-init-scripts don't handle mysql's chroot feature properly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to /etc/init.d/mysql to have datadir handled properly with chroot setting
mysql-chroot-datadir.patch (text/plain), 1.05 KB, created by
Dirk Tilger
on 2021-06-07 08:52:17 UTC
(
hide
)
Description:
Patch to /etc/init.d/mysql to have datadir handled properly with chroot setting
Filename:
MIME Type:
Creator:
Dirk Tilger
Created:
2021-06-07 08:52:17 UTC
Size:
1.05 KB
patch
obsolete
>--- /var/db/repos/gentoo/dev-db/mysql-init-scripts/files/init.d-2.3 2019-03-05 21:39:31.000000000 -0000 >+++ /etc/init.d/mysql 2021-06-07 08:35:57.865509908 -0000 >@@ -80,10 +80,12 @@ > local chroot=$(get_config "${MY_CNF}" chroot | tail -n1) > local wsrep="$(get_config "${MY_CNF}" 'wsrep[_-]on' | tail -n1 | awk '{print tolower($0)}')" > local wsrep_new=$(get_config "${MY_CNF}" 'wsrep-new-cluster' | tail -n1) >+ local datadir=$(get_config "${MY_CNF}" datadir | tail -n1) > > if [ -n "${chroot}" ] ; then > socket="${chroot}/${socket}" > pidfile="${chroot}/${pidfile}" >+ datadir="${chroot}/${datadir}" > fi > > # Galera: Only check datadir if not starting a new cluster and galera is enabled >@@ -91,7 +93,6 @@ > [ "${wsrep}" = "1" ] && wsrep="on" > if [ "${wsrep}" != "on" ] || [ -n "${wsrep_new}" ] || stringContain 'wsrep-new-cluster' "${MY_ARGS}" ; then > >- local datadir=$(get_config "${MY_CNF}" datadir | tail -n1) > if [ ! -d "${datadir}" ] ; then > eerror "MySQL datadir \`${datadir}' is empty or invalid" > eerror "Please check your config file \`${MY_CNF}'"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 794697
: 714120