diff options
author | João Figueiredo | 2021-07-22 23:21:45 +0100 |
---|---|---|
committer | João Figueiredo | 2021-07-22 23:21:45 +0100 |
commit | 94c750292fe0e4168386cf521d9d1e1cd0e6fb6b (patch) | |
tree | 30279d09f109393a79f3131e3d63eeda29d9c9d6 /mariadb.install | |
parent | c81f5274327271866a103ecf7504c016653a78c4 (diff) | |
download | aur-94c750292fe0e4168386cf521d9d1e1cd0e6fb6b.tar.gz |
Merged with official ABS mariadb PKGBUILD
Diffstat (limited to 'mariadb.install')
-rw-r--r-- | mariadb.install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mariadb.install b/mariadb.install index 58dd55bf5960..c67092b697e0 100644 --- a/mariadb.install +++ b/mariadb.install @@ -2,14 +2,14 @@ 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" + echo " the service. This can be done with mariadb-install-db command, e.g.:" + echo " mariadb-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 + 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" + echo " systemctl restart mariadb.service && mariadb-upgrade -u root -p" fi } |