1 --- a/scripts/mysql_install_db.sh
2 +++ b/scripts/mysql_install_db.sh
3 @@ -369,6 +369,14 @@ then
6 plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
7 + # Upstream assumes all plugins will be always installed, but in OpenWrt we can
8 + # install a server without plugins if we want to.
9 + if test -z "$plugindir"
11 + echo "Could not find plugin directory." >&2
12 + echo "Will continue with \"/usr/lib/mariadb/plugin\"." >&2
13 + plugindir=/usr/lib/mariadb/plugin
16 # relative from where the script was run for a relocatable install
17 elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mariadbd"
18 @@ -501,7 +509,9 @@ do
23 +# There should be no need for this on OpenWrt. If this turns out to be a wrong guess then
27 if test -z "$srcdir" -a "$in_rpm" -eq 0
29 @@ -522,6 +532,10 @@ then
37 args="$args --user=$user"