diff options
author | Winston Wu | 2019-02-21 21:09:51 +0000 |
---|---|---|
committer | Winston Wu | 2019-02-21 21:09:51 +0000 |
commit | c81f5274327271866a103ecf7504c016653a78c4 (patch) | |
tree | 5703d7893774da5cb72562c6bcc321145f9e6b99 /mariadb.install | |
download | aur-c81f5274327271866a103ecf7504c016653a78c4.tar.gz |
inital commit
Diffstat (limited to 'mariadb.install')
-rw-r--r-- | mariadb.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mariadb.install b/mariadb.install new file mode 100644 index 000000000000..58dd55bf5960 --- /dev/null +++ b/mariadb.install @@ -0,0 +1,15 @@ +#!/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 +} |