mariadb: Check and fix datadir owner issues during upgrade
authorMichal Hrusecky <michal.hrusecky@turris.com>
Thu, 13 Jan 2022 14:04:57 +0000 (15:04 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 14 Jan 2022 15:28:29 +0000 (16:28 +0100)
commitf4d8f9c98f493c8588a8bddd7def0a051a0eccd9
tree8f2ad2384f8f5d96448838835e7a415081170276
parente86528676bd48c9effdd04ebd4b2aeb5a45fa5ae
mariadb: Check and fix datadir owner issues during upgrade

If you are migrating to MariaDB package, you might have old datadir
stored somewhere using different setup with different users. If you
trust us enough to enable autoupgrade, you probably trust us enough to
chown your datadir as well. This can prevent some potential issues.

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
(cherry picked from commit b41525cef4171c7f3200afc41dca5e3837cbd2ec)
utils/mariadb/Makefile
utils/mariadb/files/mysqld.init