mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
15 lines
565 B
Bash
15 lines
565 B
Bash
#!/bin/sh
|
|
|
|
post_install() {
|
|
echo ":: You need to initialize the MariaDB data directory prior to starting"
|
|
echo " the service. This can be done with mysql_install_db command, e.g.:"
|
|
echo " mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql"
|
|
}
|
|
|
|
post_upgrade(){
|
|
# show for feature release: 10.1 -> 10.2 -> 10.3 -> ...
|
|
if [ $(vercmp "${1%.*}" "${2%.*}") -ne 0 ]; then
|
|
echo ":: MariaDB was updated to a new feature release. To update the data run:"
|
|
echo " systemctl restart mariadb.service && mysql_upgrade -u root -p"
|
|
fi
|
|
}
|