db-move: moved libdex from [staging] to [testing] (x86_64)
[arch-packages.git] / mariadb / trunk / mariadb.install
blobc67092b697e02e13ff0f63b4d7682edeb7a19caf
1 #!/bin/sh
3 post_install() {
4 echo ":: You need to initialize the MariaDB data directory prior to starting"
5 echo " the service. This can be done with mariadb-install-db command, e.g.:"
6 echo " mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql"
9 post_upgrade() {
10 # show for feature release: 10.1 -> 10.2 -> 10.3 -> ...
11 if [ $(vercmp "${1%.*-*}" "${2%.*-*}") -ne 0 ]; then
12 echo ":: MariaDB was updated to a new feature release. To update the data run:"
13 echo " systemctl restart mariadb.service && mariadb-upgrade -u root -p"