mariadb: Init script improvements
authorMichal Hrusecky <michal.hrusecky@turris.com>
Fri, 29 Oct 2021 14:55:47 +0000 (16:55 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 3 Dec 2021 13:29:07 +0000 (14:29 +0100)
commited572e389883bb9a293b487cf7d500d95e307a2a
tree6bb75adc64da5eeda9e307704cacc0aeec9b7d14
parentfb4c9e5c487cdfe38bc82efc32e01be35cbea6c3
mariadb: Init script improvements

Update init script so other user/group can be used. Also make sure that
init script can actually create an empty database instead of forcing the
user to do it by hand. Other new feature is taking care of migration
of the database when upgrading the database.

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