2017-12-31 00:00:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-01-18 13:29:56 +00:00
|
|
|
post_install() {
|
2015-03-05 13:33:29 +00:00
|
|
|
echo ":: You need to initialize the MariaDB data directory prior to starting"
|
2019-08-02 12:38:02 +00:00
|
|
|
echo " the service. This can be done with mariadb-install-db command, e.g.:"
|
2019-06-27 22:48:06 +00:00
|
|
|
echo " mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql"
|
2014-12-05 16:47:24 +00:00
|
|
|
}
|
|
|
|
|
2019-02-24 21:19:41 +00:00
|
|
|
post_upgrade() {
|
2019-01-18 13:29:56 +00:00
|
|
|
# show for feature release: 10.1 -> 10.2 -> 10.3 -> ...
|
2019-04-05 12:37:31 +00:00
|
|
|
if [ $(vercmp "${1%.*-*}" "${2%.*-*}") -ne 0 ]; then
|
2019-01-18 13:29:56 +00:00
|
|
|
echo ":: MariaDB was updated to a new feature release. To update the data run:"
|
2019-06-27 22:48:06 +00:00
|
|
|
echo " systemctl restart mariadb.service && mariadb-upgrade -u root -p"
|
2019-01-18 13:29:56 +00:00
|
|
|
fi
|
|
|
|
}
|