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>
13 lines
387 B
Text
13 lines
387 B
Text
|
|
config mysqld 'general'
|
|
# Unless enable, MariaDB will not start without this
|
|
option enabled '0'
|
|
# User to run MariaDB as
|
|
option user 'mariadb'
|
|
# Group to run MariaDB
|
|
option group 'mariadb'
|
|
# If there is now database, create an empty one automatically
|
|
option init '1'
|
|
# If upgrading old database, run mysql_upgrade during restart
|
|
option upgrade '1'
|
|
|