From 6740bfa28d86a8ea5d2f051c0c215156c3914e6e Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 25 Jul 2014 02:18:30 -0300 Subject: galera replication for mariadb --- pcr/mariadb-galera/mariadb.install | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pcr/mariadb-galera/mariadb.install') diff --git a/pcr/mariadb-galera/mariadb.install b/pcr/mariadb-galera/mariadb.install index 7d3c2ce5c..595bc4c4d 100644 --- a/pcr/mariadb-galera/mariadb.install +++ b/pcr/mariadb-galera/mariadb.install @@ -14,9 +14,6 @@ post_install(){ fi usr/bin/systemd-tmpfiles --create mysql.conf - - echo ">> If you are migrating from MySQL, don't forget to run 'mysql_upgrade'" - echo " after mysqld.service restart." } post_upgrade(){ @@ -31,16 +28,21 @@ post_upgrade(){ fi if [[ "$(vercmp $2 5.5.25-5)" -lt 0 ]]; then - echo ">> mysql.service has been renamed to mysqld.service to keep" - echo " consistency with MySQL package." + echo ":: mysql.service has been renamed to mysqld.service to keep" + echo " consistency with MySQL package." + fi + + if [[ "$(vercmp $2 10.0)" -lt 0 ]]; then + echo ":: Major version update. Consider restarting mysqld.service and" + echo " running mysql_upgrade afterwards." fi } post_remove(){ if getent passwd mysql >/dev/null 2>&1; then userdel mysql - fi + if getent group mysql >/dev/null 2>&1; then groupdel mysql fi -- cgit v1.2.3