summaryrefslogtreecommitdiff
path: root/pcr/mariadb-galera/mariadb.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/mariadb-galera/mariadb.install')
-rw-r--r--pcr/mariadb-galera/mariadb.install14
1 files changed, 8 insertions, 6 deletions
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